mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-25 01:28:16 +00:00
44 lines
741 B
JavaScript
44 lines
741 B
JavaScript
/**
|
|
* @flow
|
|
*/
|
|
|
|
import React from 'react';
|
|
import {
|
|
AppRegistry,
|
|
StyleSheet,
|
|
Text,
|
|
View,
|
|
} from 'react-native';
|
|
|
|
import HybridContainer from './HybridContainer';
|
|
|
|
const NotFoundComponent = () => (
|
|
<View style={styles.container}>
|
|
<Text style={styles.welcome}>
|
|
Screen not found!
|
|
</Text>
|
|
</View>
|
|
);
|
|
|
|
const HelloHybrid = HybridContainer({
|
|
Settings: require('./screens/Settings'),
|
|
Story: require('./screens/Story'),
|
|
NotFoundComponent,
|
|
});
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
},
|
|
welcome: {
|
|
fontSize: 20,
|
|
textAlign: 'center',
|
|
margin: 10,
|
|
},
|
|
});
|
|
|
|
AppRegistry.registerComponent('HelloHybrid', () => HelloHybrid);
|