Navigation.push( {
component: {
name: "Request",
passProps: {
text: 'Pushed screen',
bb1: 'anything you want here',
} }
});
导航将通行道提示到堆栈中的新屏幕上,我想用参数弹出屏幕。有什么方法可以在Wix Navigation中预期Redux?
navigation.pop(this.props.componentID(;
您可以使用回调方法实现此目标。
eg:
Navigation.push( {
component: {
name: "Request",
passProps: {
text: 'Pushed screen',
bb1: 'anything you want here',
callback: {(data)=>this._localMethod(data)}
} }
});
_localMethod(data) {
//Here you will get the data, "Data to pass"
}
在儿童课中,
调用该方法,
this.props. callback("Data to pass")