के बाद काम नहीं करता है मैंने हाल ही में अपने प्रतिक्रिया मूल परियोजना को ~ 0.28 से नवीनतम संस्करण (0.43.2) में अपग्रेड किया था और किसी कारण से मेरा नेविगेशन बार नहीं मेरे लिए लंबे समय तक छुपाता है।नेविगेटरआईओएस घटक (प्रतिक्रिया-मूल) में नेविगेशन बार छुपाएं आरएन अपडेट
<TabBarIOS.Item
selected={this.state.selectedTab === 'home'}
title='Home'
icon={require ('./Icons/IconImages/HomeTabIcon.png')}
onPress={
() => this._tabPressed('home')
}>
<NavigatorIOS
style={styles.container}
ref="nav"
interactivePopGestureEnabled={false}
initialRoute={{
title: 'Home',
component: HomeNavigationController,
navigationBarHidden: true, //this does nothing now
showTabBar: false, //this is to hide the bottom tabBar
passProps: {
...
},
}}/>
</TabBarIOS.Item>
बाहर यह जोड़ना initialRoute
भी काम नहीं करता है:
<NavigatorIOS
style={styles.container}
ref="nav"
interactivePopGestureEnabled={false}
initialRoute={{
title: 'Home',
component: HomeNavigationController,
showTabBar: false,
passProps: {...},
}}
navigationBarHidden={true} // does not work
/>
आपका कोड, दूसरा संस्करण, मेरे लिए काम कर रहा है (0.43)। शैलियों.container में क्या है? – Ludovic
हां यह वास्तव में मेरे घटकों को शुरू करने और फिर से जोड़ने के बाद काम करता है। –