import { AppRegistry } from 'react-native';
import TabViewExample from './src/nav';
import LandingPage from './src/landingPage'
import React, { Component } from 'react';
import { Router, Scene } from 'react-native-router-flux';
export default class App extends Component {
render() {
return (
<Router>
<Scene key="root">
<Scene key="pageOne" component={LandingPage} hideNavBar={true} initial={true} />
<Scene key="main" component={TabViewExample} hideNavBar={true} />
</Scene>
</Router>
)
}
}
AppRegistry.registerComponent('AwesomeProject', () => App);
import React, { Component } from 'react';
import { View, Text } from 'react-native';
import { Actions } from 'react-native-router-flux';
export default class LandingPage extends Component {
render() {
return (
<View style={{margin: 128}}>
<Text onPress={Actions.main()}>This is PageOne!</Text>
</View>
)
}
}