|
@@ -4,7 +4,7 @@
|
|
|
*/
|
|
*/
|
|
|
import React, { Component } from 'react';
|
|
import React, { Component } from 'react';
|
|
|
import './app/i18n'
|
|
import './app/i18n'
|
|
|
-import {AppRegistry, KeyboardAvoidingView} from 'react-native';
|
|
|
|
|
|
|
+import {AppRegistry} from 'react-native';
|
|
|
import 'react-native-gesture-handler';
|
|
import 'react-native-gesture-handler';
|
|
|
import './app/utils/themes'
|
|
import './app/utils/themes'
|
|
|
import './app/utils/constant';
|
|
import './app/utils/constant';
|
|
@@ -40,14 +40,7 @@ class Index extends Component {
|
|
|
<RootSiblingParent>
|
|
<RootSiblingParent>
|
|
|
<MyStatusBar/>
|
|
<MyStatusBar/>
|
|
|
{ this.state.visible
|
|
{ this.state.visible
|
|
|
- ? (isIOS
|
|
|
|
|
- ? <KeyboardAvoidingView
|
|
|
|
|
- style={ui.flex1}
|
|
|
|
|
- contentContainerStyle={{top: 0, height: "100%"}}
|
|
|
|
|
- behavior="position">
|
|
|
|
|
- <Router/>
|
|
|
|
|
- </KeyboardAvoidingView>
|
|
|
|
|
- : <Router/>)
|
|
|
|
|
|
|
+ ? <Router/>
|
|
|
: <></>
|
|
: <></>
|
|
|
}
|
|
}
|
|
|
<ModalPortal />
|
|
<ModalPortal />
|
|
@@ -59,18 +52,4 @@ class Index extends Component {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-AppRegistry.registerComponent(app.name, () => Index);
|
|
|
|
|
-
|
|
|
|
|
-/*if (app.modules.codePush ) {
|
|
|
|
|
- //热更新配置
|
|
|
|
|
- let codePushOptions = {
|
|
|
|
|
- updateDialog: false,
|
|
|
|
|
- //实时检测更新并下载
|
|
|
|
|
- checkFrequency: codePush.CheckFrequency.ON_APP_RESUME,
|
|
|
|
|
- //下载完成后立即安装
|
|
|
|
|
- installMode: codePush.InstallMode.IMMEDIATE
|
|
|
|
|
- //下次进入安装
|
|
|
|
|
- //installMode: codePush.InstallMode.ON_NEXT_RESTART
|
|
|
|
|
- };
|
|
|
|
|
- AppRegistry.registerComponent(app.name, () => codePush(codePushOptions)(Index));
|
|
|
|
|
-}*/
|
|
|
|
|
|
|
+AppRegistry.registerComponent(app.name, () => Index);
|