参考文章 http://facebook.github.io/react-native/docs/native-modules-android.html,先用 java 实现
顶部菜单 --> code...如果没有已有的运行良好的项目,不要尝试用 Android Studio 直接新建项目,因为 Android Studio 的默认 SDK 版本(25.3.1) 和 ReactNative 的SDK版本(...23.0.1) 不一致,所以在根据 RN 文档,改配置,会遇到各种问题.如果非要模拟,建议直接基于 AwesomeProject/android 这个项目改..../rlidwka/sinopia
如果遇到 All com.android.support libraries must use the exact same version specification...RN 的文档可能是错的.如果提示方法名总是不对,可以尝试下手动输入,看下提示,可能真的变了.