1.建立一個靜態庫工程.commond+R編譯
2.建立ReactNative工程 react native init TestProject
3.在建立的ReactNative工程下的node_modules建立一個資料夾
react-native-xxModuleExample, 然後我們在新建立的資料夾下再建立一個ios資料夾。 建立方法如下:
$ cd XXProject/node_modules
$ mkdir react-native-BGNativeModuleExample
$ cd react-native-BGNativeModuleExample
$ mkdir ios 4.將建立好的靜態庫檔案copy到node_modules/react-native-xxModuleExample/ios目錄下


(1)、
複製程式碼



遇到坑
複製程式碼

