UNPKG

npmchenwei111

Version:

test1111

35 lines (28 loc) 760 B
import React, { Component } from 'react' import { StackNavigator } from 'react-navigation' import { rebuildString } from './prototype/PrototypeRebuild' import ReactManifest from './ReactManifest' import TestManifest from './test/TestManifest' class Navigator extends Component { constructor (props) { super(props) rebuildString() } render () { let Navigator = StackNavigator({ ...TestManifest, ...ReactManifest, }, { navigationOptions: ({navigation, screenProps}) => ({ header: null }), initialRouteName: this.props.myProps.SCREEN, mode: 'card' }) console.log('Navigation', this.props) return ( <Navigator screenProps={this.props}/> ) } } export default Navigator