我在项目中使用了React Native Router Flux。如何在Welcome组件上触发onRight功能?我只能在NavigationController类上调用函数。
export default class NavigationController extends Component {
render() {
return (
<Drawer
...>
<Router>
<Scene key="root">
<Scene key="intro" passProps={true} drawer={this} hideNavBar={true} component={Intro}
initial={true}/>
<Scene key="welcome"
component={Welcome}
onRight={() => alert("right")}
rightButtonImage={require('./assets/plus_blue.png')}
/>
</Scene>
</Router>
</Drawer>
);
}
}