Navigation.push( {
component: {
name: "Request",
passProps: {
text: 'Pushed screen',
bb1: 'anything you want here',
} }
});
导航将传递道具推入堆栈中的新屏幕,我想弹出带有参数的屏幕。在wix导航中有什么方法可以期望redux?
Navigation.pop(this.props.componentId);
答案 0 :(得分:1)
您可以通过使用回调方法来实现。
例如:
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")