Closed
Description
I want to set the navigationBarStyle just for one route with a schema. e.g Default should be blue and the dashboard route should be white. But every route is blue.
<Router hideNavBar={true}>
<Schema name="default" sceneConfig={Navigator.SceneConfigs.FloatFromRight} titleStyle={{color: 'white'}}
backButtonStyle={{tintColor: 'white'}}
navigationBarStyle={{backgroundColor: 'blue'}}
barButtonText={{color: 'white'}}
/>
<Route name="launch" component={Launch}/>
<Route name="dashboard">
<Router hideNavBar={false}>
<Schema name="dashboard"
sceneConfig={Navigator.SceneConfigs.FloatFromRight}
titleStyle={{color: 'white'}}
backButtonStyle={{tintColor: 'white'}}
navigationBarStyle={{backgroundColor: 'white'}}
barButtonText={{color: 'white'}}
/>
<Route name='home' component={Dashboard} title={Strings('dashboard')} type='replace' renderTitle={renderTitle} schema='dashboard'/>
</Router>
</Route>
<Route name="login" component={Login} title={Strings('login')} showNavigationBar={false} renderLeftButton={renderBackButton}/>
<Route name="createAccount" component={Login} title={Strings('createAccount')} renderLeftButton={renderBackButton}/>
</Router>
Metadata
Metadata
Assignees
Labels
No labels