vbea 2 年之前
父节点
当前提交
349b679142
共有 1 个文件被更改,包括 3 次插入24 次删除
  1. 3 24
      Strides-APP/index.js

+ 3 - 24
Strides-APP/index.js

@@ -4,7 +4,7 @@
  */
 import React, { Component } from 'react';
 import './app/i18n'
-import {AppRegistry, KeyboardAvoidingView} from 'react-native';
+import {AppRegistry} from 'react-native';
 import 'react-native-gesture-handler';
 import './app/utils/themes'
 import './app/utils/constant';
@@ -40,14 +40,7 @@ class Index extends Component {
       <RootSiblingParent>
         <MyStatusBar/>
         { this.state.visible 
-          ? (isIOS
-            ? <KeyboardAvoidingView
-                style={ui.flex1}
-                contentContainerStyle={{top: 0, height: "100%"}}
-                behavior="position">
-                <Router/>
-              </KeyboardAvoidingView>
-            : <Router/>)
+          ? <Router/>
           : <></>
         }
         <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);