Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用react-native web时如何将道具传递给react-native?_React Native_React Native Web - Fatal编程技术网

使用react-native web时如何将道具传递给react-native?

使用react-native web时如何将道具传递给react-native?,react-native,react-native-web,React Native,React Native Web,当我使用react native web时,我的应用程序条目如下所示 AppRegistry.registerComponent('SnsAdvertiser', () => Advertiser)

当我使用
react native web
时,我的应用程序条目如下所示

 AppRegistry.registerComponent('SnsAdvertiser', () => Advertiser)                                                                                                                                                                            
 AppRegistry.runApplication('SnsAdvertiser', { rootTag: document.getElementById('mainApp') });

我想知道在web环境中,在这种情况下如何将props传递给根组件。在第二个参数中,名为
initialProps
以及
rootTag

 AppRegistry.runApplication('SnsAdvertiser', {
     rootTag: document.getElementById('mainApp'),
     initialProps: {...}
 });

您从何处获得AppRegistry.runApplication参数的引用,如AppRegistry的InitialProps引用: