React Native 与原生交互一般有三种方式,分别是Callback
,Promise
,RCTDeviceEventEmitter
import {
AppRegistry,
StyleSheet,
Text,
View,
NativeModules
} from 'react-native';
//import NativeModules from 'react-native'
https://github.com/theLizhao/RN2NativeDemo