我是新的反应原生,我有两个场景OnceScene和TwoScene我想从OnceScene导航到TwoScene,并在同一时间我想传递一些字符串或从第1阵列第二届所以我写了下面的代码传递数据从一个场景到另一个在ReactNaive
let nextRoute = {
component: TwoScene,
title: 'TwoScene',
passProps: { myProp: 'bar', searchText: 'pass data', }
};
this.props.navigator.push(nextRoute);
你可以看到我传递的字符串中passProps,但我怎么能接取在TwoScene它该字符串似乎很简单,但由于我是新的我没有太多的想法。
[如何在ReactNaive中将数据从一个场景传递到另一个场景](https://stackoverflow.com/questions/42621845/how-to-pass-data-from-one-scene-to-another-in-reactnaive) – Bat