|
|
@@ -2,7 +2,7 @@
|
|
|
* @format
|
|
|
*/
|
|
|
import React from 'react';
|
|
|
-import {AppRegistry, StatusBar} from 'react-native';
|
|
|
+import {AppRegistry, KeyboardAvoidingView, StatusBar} from 'react-native';
|
|
|
import 'react-native-gesture-handler';
|
|
|
import './app/utils/notification';
|
|
|
import './app/utils/constant';
|
|
|
@@ -12,14 +12,21 @@ import {name as appName} from './app.json';
|
|
|
//import {ModalPortal} from 'react-native-modals';
|
|
|
import ModalPortal from './app/components/ModalPortal';
|
|
|
import {RootSiblingParent} from 'react-native-root-siblings';
|
|
|
+import { SafeAreaView } from 'react-native-safe-area-context';
|
|
|
|
|
|
|
|
|
const Index = () => {
|
|
|
return (
|
|
|
<RootSiblingParent>
|
|
|
<StatusBar barStyle="dark-content" backgroundColor={colorPrimaryDark}/>
|
|
|
- <Router />
|
|
|
+ { isIOS
|
|
|
+ ? <KeyboardAvoidingView style={ui.flex1} behavior="padding">
|
|
|
+ <Router />
|
|
|
+ </KeyboardAvoidingView>
|
|
|
+ : <Router />
|
|
|
+ }
|
|
|
<ModalPortal />
|
|
|
+ <SafeAreaView style={{flex: 0, backgroundColor: 'white'}}></SafeAreaView>
|
|
|
</RootSiblingParent>
|
|
|
);
|
|
|
};
|