|
|
|
@ -37,6 +37,11 @@ type Props = { |
|
|
|
|
*/ |
|
|
|
|
hasTabNavigator?: boolean, |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Is the keyboard already dismissible? |
|
|
|
|
*/ |
|
|
|
|
keyboardAlreadyDismissible?: boolean, |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Insets for the SafeAreaView. |
|
|
|
|
*/ |
|
|
|
@ -54,6 +59,7 @@ const JitsiScreen = ({ |
|
|
|
|
footerComponent, |
|
|
|
|
hasTabNavigator = false, |
|
|
|
|
hasBottomTextInput = false, |
|
|
|
|
keyboardAlreadyDismissible = false, |
|
|
|
|
safeAreaInsets = [ 'left', 'right' ], |
|
|
|
|
style |
|
|
|
|
}: Props) => ( |
|
|
|
@ -63,13 +69,14 @@ const JitsiScreen = ({ |
|
|
|
|
contentContainerStyle = { contentContainerStyle } |
|
|
|
|
hasBottomTextInput = { hasBottomTextInput } |
|
|
|
|
hasTabNavigator = { hasTabNavigator } |
|
|
|
|
keyboardAlreadyDismissible = { keyboardAlreadyDismissible } |
|
|
|
|
style = { style }> |
|
|
|
|
<SafeAreaView |
|
|
|
|
edges = { safeAreaInsets } |
|
|
|
|
style = { styles.safeArea }> |
|
|
|
|
{children} |
|
|
|
|
</SafeAreaView> |
|
|
|
|
{footerComponent && footerComponent()} |
|
|
|
|
{ footerComponent && footerComponent() } |
|
|
|
|
</JitsiKeyboardAvoidingView> |
|
|
|
|
</View> |
|
|
|
|
); |
|
|
|
|