Update to use SDK V0.1.8

This commit is contained in:
Tiago Jacobs
2022-03-04 00:07:36 -03:00
parent 581ce57e94
commit acd18006fc
11 changed files with 99 additions and 239 deletions

View File

@@ -1,32 +1,27 @@
import { BigbluebuttonMobile } from 'bigbluebutton-mobile-sdk'
import React from 'react'
import {BigbluebuttonMobile} from 'bigbluebutton-mobile-sdk';
import React from 'react';
import {StyleSheet, View, Platform} from 'react-native';
type ISdkContainer = {
url: string
props?: any
url: string;
props?: any;
};
export default function SdkContainer({url}: ISdkContainer) {
return (
<>
<View style={styles.container}>
<BigbluebuttonMobile url={url} style={styles.bbb} />
</View>
</>
);
}
export default function SdkContainer({url, ...props}: ISdkContainer){
return (
<>
<View style={styles.container}>
<BigbluebuttonMobile
broadcastAppBundleId="org.bigbluebutton.mobile.BigBlueButton-Broadcast"
url={url}
style={styles.bbb}
/>
</View>
</>
)
}
const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'row',
},
bbb: {
marginTop: Platform.select({ios: 20, android: 0}),
flex: 1,
},
});
container: {
flex: 1,
flexDirection: 'row',
},
bbb: {
marginTop: Platform.select({ios: 20, android: 0}),
flex: 1,
},
});