/** * @format */ import React from 'react'; import {AppRegistry, KeyboardAvoidingView, StatusBar} from 'react-native'; import codePush from "react-native-code-push"; import 'react-native-gesture-handler'; import './app/utils/themes' import './app/utils/constant'; import './app/utils/notification'; import './app/utils/vector_icon'; import Router from './app/pages/Router'; 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 ( { isIOS ? : } ); }; //热更新配置 let codePushOptions = { //实时检测更新并下载 checkFrequency: codePush.CheckFrequency.ON_APP_RESUME, //下载完成后立即安装 //installMode: codePush.InstallMode.IMMEDIATE, //下次进入安装 installMode: codePush.InstallMode.ON_NEXT_RESTART }; AppRegistry.registerComponent(appName, () => codePush(codePushOptions)(Index)); //AppRegistry.registerComponent(appName, () => Index);