我想在我的React Native应用程序(index.ios.js)的顶层使用“全局”ActivityIndicatorIOS,这样我就可以控制它当我需要打开和关闭应用程序时,请将应用程序移出。React Native - 如何从Grand-child组件设置ActivityIndicatorIOS的属性
应用结构:
index.ios.js <- ActivityIndicatorIOS here
|
tabbar.ios.js
|
tab1.js <- Need to reference it from here
tab2.js "
tab3.js "
我真的很想知道要做到这一点,而不是重用在应用中的每个视图组件的最好方式,有它坐过来的“顶层“NavigatorIOS并能够打开和关闭它。