Skip to content

Commit

Permalink
Prevent crash on react-native 0.63 (+ bumping to 0.27.-BETA)
Browse files Browse the repository at this point in the history
  • Loading branch information
codlab committed Mar 1, 2021
1 parent 6db275a commit 31d2119
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
4 changes: 1 addition & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,7 @@ dependencies {
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+" // From node_modules
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
implementation (project(':@voxeet_react-native-voxeet-conferencekit')) {
transitive = true
}

debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
exclude group:'com.facebook.fbjni'
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@react-navigation/native": "^5.8.10",
"@react-navigation/stack": "^5.12.8",
"@unimodules/core": "^7.0.0",
"@voxeet/react-native-voxeet-conferencekit": "^0.2.6-BETA3",
"@voxeet/react-native-voxeet-conferencekit": "^0.2.7-BETA2",
"amazon-cognito-identity-js": "^4.5.10",
"aws-amplify": "^3.3.13",
"axios": "^0.21.1",
Expand Down
50 changes: 26 additions & 24 deletions src/Features/Login/loginScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,34 @@ import { View, Text } from 'react-native';
import { LoginScreenStyles } from './loginScreenStyles';
import { VoxeetSDK } from '@voxeet/react-native-voxeet-conferencekit';


const loadCall = async () => {
const isHermes = () => !!global.HermesInternal;
console.log('Voxeet test issue hermes: ', isHermes());
await VoxeetSDK.initialize(
'<consumer_key>',
'<consumer_secret>'
);
await VoxeetSDK.connect({
externalId: 'test@gmail.com',
name: 'test@gmail.com',
});
const conferenceAlias = `76099784248324_QA_streamstyle`.toLocaleLowerCase();
const conference = await VoxeetSDK.create({ alias: conferenceAlias });
console.log('voxeet debug conferenceAlias: ', conferenceAlias);
console.log('voxeet debug conference: ', conference);
const joined = await VoxeetSDK.join(conference.conferenceId, {
constraints: {
audio: true,
video: true,
},
});
console.log('voxeet debug joined: ', joined);
}

function LoginScreen(props) {
useEffect(() => {
const isHermes = () => !!global.HermesInternal;
console.log('Voxeet test issue hermes: ', isHermes());
VoxeetSDK.initialize(
'<consumer_key>',
'<consumer_secret>'
);
VoxeetSDK.connect({
externalId: 'test@gmail.com',
name: 'test@gmail.com',
})
.then(async () => {
const conferenceAlias = `76099784248324_QA_streamstyle`.toLocaleLowerCase();
const conference = await VoxeetSDK.create({ alias: conferenceAlias });
console.log('voxeet debug conferenceAlias: ', conferenceAlias);
console.log('voxeet debug conference: ', conference);
const joined = await VoxeetSDK.join(conference.conferenceId, {
constraints: {
audio: true,
video: true,
},
});
console.log('voxeet debug joined: ', joined);
})
.catch((e) => console.log('Voxeet join failed with error: ', e));
loadCall().catch((e) => console.log('Voxeet join failed with error: ', e));
}, []);

return (
Expand Down

0 comments on commit 31d2119

Please sign in to comment.