详解React native全局变量的使用(跨组件的通信) RN中有两种方式使用全局变量1.通过导入导出文件的方式新建constants.js文件constobject={website:'h native全局变量