We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tell us which versions you are using:
I need to create custom tabBar, and in navigationState.routes.params i expect params of my scene but navigationState.routes.params is undefined
navigationState.routes.params is undefined
const TabBar = ({ navigationState, jumpToIndex }) => { const routes = navigationState.routes; return ( routes.map((el, i) => { return ( <View key={i}><Text>{el.params ? el.params.title : 'no params'}</Text></View> ); }) ) } <Scene initial={this.props.first ? false : true} key="tabbar" tabs={true} tabBarStyle={styles.tabBarStyle} tabBarComponent={TabBar} navigationBarStyle={styles.navigationBarStyle} labelStyle={styles.label} activeTintColor={colorRed}> <Scene initial key="time" title="Time" component={Time} iconName="ios-clock" icon={TabIcon} hideNavBar/> <Scene key="alarm" title="Alarm" iconName="ios-alarm" icon={TabIcon}> <Scene key="alarm" component={Alarm} title="Alarm" hideNavBar /> <Scene key="alarmAdd" component={AlarmAdd} title="Add alarm" hideNavBar /> <Scene key="alarmTitleModal" component={AlarmTitleModal} direction="vertical" title="Title" hideNavBar /> <Scene key="alarmRepeatModal" component={AlarmRepeatModal} direction="vertical" hideNavBar /> </Scene> <Scene key="settings" title="Settings" iconName="ios-settings" icon={TabIcon} hideNavBar> <Scene initial key="settings-all" component={Settings} title="Settings" /> <Scene key="settingsUser" component={SettingsUser} title="User settings" back={true} hideNavBar={false}/> <Scene key="settingsTime" component={SettingsTime} title="User time" back={true} hideNavBar={false}/> <Scene key="settingsFontColor" component={SettingsFontColor} title="Font color"/> <Scene key="settingsBrightness" component={SettingsBrightness} title="Brightness"/> </Scene> </Scene>
The text was updated successfully, but these errors were encountered:
Please check latest version based on react navigation 2.x - 4.0.0-beta.40
Sorry, something went wrong.
No branches or pull requests
Version
Tell us which versions you are using:
Expected behaviour
I need to create custom tabBar, and in navigationState.routes.params i expect params of my scene but navigationState.routes.params is undefined
Actual behaviour
navigationState.routes.params is undefined
Steps to reproduce
The text was updated successfully, but these errors were encountered: