ajust in safe area view in the web view margin top

This commit is contained in:
Gustavo Emanuel Farias Rosa
2022-03-18 11:24:01 -03:00
parent d86f9b7a68
commit 8d7ba7ae31
3 changed files with 13 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
import {BigbluebuttonMobile} from 'bigbluebutton-mobile-sdk';
import React from 'react';
import {StyleSheet, View, Platform} from 'react-native';
import { SdkContainerDiv } from './styles';
type ISdkContainer = {
url: string;
props?: any;
@@ -8,9 +9,9 @@ type ISdkContainer = {
export default function SdkContainer({url}: ISdkContainer) {
return (
<>
<View style={styles.container}>
<SdkContainerDiv>
<BigbluebuttonMobile url={url} style={styles.bbb} />
</View>
</SdkContainerDiv>
</>
);
}

View File

@@ -0,0 +1,6 @@
import styled from "styled-components/native";
export const SdkContainerDiv = styled.SafeAreaView`
flex: 1;
flex-direction: row;
`