1234567891011121314151617181920212223242526272829303132 |
- import React, { Component } from 'react';
- import { StyleSheet, AppRegistry, View, Text } from 'react-native';
- import Loading from './Loading';
- import Toast from './Toast';
- // import Popup from './Popup';
- const originRegister = AppRegistry.registerComponent;
- AppRegistry.registerComponent = (appKey, component) => {
- return originRegister(appKey, function() {
- const OriginAppComponent = component();
- return class extends Component {
- render() {
- return (
- <View style={styles.container}>
- <OriginAppComponent />
- {/* 弹窗
- <Popup /> */}
- {/* 提示 */}
- <Toast />
- {/* //加载动画 */}
- <Loading />
- </View>
- );
- }
- };
- });
- };
- const styles = StyleSheet.create({
- container: {
- flex: 1,
- position: 'relative'
- }
- });
|