我正在使用react-native-navigation
作为基于标签视图的应用。
Navigation.startTabBasedApp({
tabs,
appStyle: {
orientation: 'portrait',
tabBarBackgroundColor: 'rgba(240, 240, 240, 1)',
},
tabsStyle: {
tabBarButtonColor: DARK_GRAY,
tabBarSelectedButtonColor: DARK_GRAY,
tabBarHideShadow: true,
},
animationType: 'fade',
});
我想知道哪个是所有标签视图的超级视图? 我怎么能覆盖它?
目前我想通过整个应用程序发送一个事件,但我无法访问超级视图,因此我必须在所有视图中添加侦听器。
我想在超级视图中添加一个监听器。如何使用react-native-navigation
实现它?