|
|
@@ -12,14 +12,12 @@ import './app/utils/notification';
|
|
|
import './app/utils/vector_icon';
|
|
|
import Router from './app/pages/Router';
|
|
|
import app 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';
|
|
|
import MyStatusBar from './app/components/MyStatusBar';
|
|
|
import { i18nUtil } from './app/i18n';
|
|
|
|
|
|
-//let context;
|
|
|
class Index extends Component {
|
|
|
constructor(props) {
|
|
|
super(props);
|
|
|
@@ -27,7 +25,6 @@ class Index extends Component {
|
|
|
visible: false,
|
|
|
refreshTime: 0
|
|
|
}
|
|
|
- //context = this;
|
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
|
|
@@ -38,17 +35,6 @@ class Index extends Component {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- /*restartApp() {
|
|
|
- console.log("----------------RESTART-----------------");
|
|
|
- this.setState({
|
|
|
- visible:false
|
|
|
- }, () => {
|
|
|
- this.setState({
|
|
|
- visible: true
|
|
|
- })
|
|
|
- })
|
|
|
- }*/
|
|
|
-
|
|
|
render() {
|
|
|
return (
|
|
|
<RootSiblingParent>
|
|
|
@@ -62,14 +48,16 @@ class Index extends Component {
|
|
|
: <></>
|
|
|
}
|
|
|
<ModalPortal />
|
|
|
- { isIOS &&
|
|
|
- <SafeAreaView style={{flex: 0, backgroundColor: colorLight}}></SafeAreaView>
|
|
|
+ { isIOS && (
|
|
|
+ <SafeAreaView style={{flex: 0, backgroundColor: colorLight}}></SafeAreaView>)
|
|
|
}
|
|
|
</RootSiblingParent>
|
|
|
);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+AppRegistry.registerComponent(app.name, () => Index);
|
|
|
+
|
|
|
/*if (app.modules.codePush ) {
|
|
|
//热更新配置
|
|
|
let codePushOptions = {
|
|
|
@@ -81,7 +69,5 @@ class Index extends Component {
|
|
|
//下次进入安装
|
|
|
//installMode: codePush.InstallMode.ON_NEXT_RESTART
|
|
|
};
|
|
|
-
|
|
|
AppRegistry.registerComponent(app.name, () => codePush(codePushOptions)(Index));
|
|
|
-}*/
|
|
|
-AppRegistry.registerComponent(app.name, () => Index);
|
|
|
+}*/
|