2022-02-16 10:45:44 +08:00
|
|
|
import * as React from 'react';
|
2022-02-16 07:55:10 +08:00
|
|
|
|
2022-02-16 10:45:44 +08:00
|
|
|
import {StyleSheet, View, Platform} from 'react-native';
|
|
|
|
import {BigbluebuttonMobile} from 'bigbluebutton-mobile-sdk';
|
2022-02-16 07:55:10 +08:00
|
|
|
|
2022-02-16 10:45:44 +08:00
|
|
|
export default function App() {
|
2022-02-16 07:55:10 +08:00
|
|
|
return (
|
2022-02-16 10:45:44 +08:00
|
|
|
<View style={styles.container}>
|
|
|
|
<BigbluebuttonMobile
|
|
|
|
broadcastAppBundleId="org.bigbluebutton.mobile-sdk.example.BigBlueButtonMobileSdkBroadcastExample"
|
2022-02-16 11:01:25 +08:00
|
|
|
url="https://demo.bigbluebutton.org/gl"
|
2022-02-16 10:45:44 +08:00
|
|
|
style={styles.bbb}
|
|
|
|
/>
|
2022-02-16 07:55:10 +08:00
|
|
|
</View>
|
|
|
|
);
|
2022-02-16 10:45:44 +08:00
|
|
|
}
|
2022-02-16 07:55:10 +08:00
|
|
|
|
|
|
|
const styles = StyleSheet.create({
|
2022-02-16 10:45:44 +08:00
|
|
|
container: {
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'row',
|
2022-02-16 07:55:10 +08:00
|
|
|
},
|
2022-02-16 10:45:44 +08:00
|
|
|
bbb: {
|
|
|
|
marginTop: Platform.select({ios: 48, android: 0}),
|
|
|
|
flex: 1,
|
2022-02-16 07:55:10 +08:00
|
|
|
},
|
|
|
|
});
|