@@ -232,23 +232,45 @@ cd android
232232
233233## FAQ
234234
235- ### ** Invariant Violation: Module AppRegistry is not a registered callable module**
236-
237- remove app from the emulator
238- npm cache clean --force
239- watchman watch-del-all
240-
241- # for ios
242- cd ios
243- pod update / pod install
244- cd ..
245- npx react-native run-ios
246- # for android
247- cd android && ./gradlew clean
248- cd ..
249- npx react-native run-android
250-
251- [https://stackoverflow.com/questions/64768328/invariant-violation-module-appregistry-is-not-a-registered-callable-module-cal](https://stackoverflow.com/questions/64768328/invariant-violation-module-appregistry-is-not-a-registered-callable-module-cal)
235+ ### 配置BugSnag
236+
237+ 1 . [ Create a bugsnag account] ( https://app.bugsnag.com/user/new ) .
238+
239+ 2 . Add your project api key to [ android/app/src/main/AndroidManifest.xml] ( android/app/src/main/AndroidManifest.xml#L25-L26 ) :
240+
241+ ``` xml
242+ <meta-data android : name =" com.bugsnag.android.API_KEY"
243+ android : value =" YOUR-API-KEY-HERE" />
244+ ```
245+
246+ and [ ios/app/Info.plist] ( ios/app/Info.plist ) :
247+
248+ ``` xml
249+ <key >BugsnagAPIKey</key >
250+ <string >YOUR-API-KEY-HERE</string >
251+ ```
252+
253+ The API key can be found in the Bugsnag settings for your project.
254+
255+ ### Invariant Violation: Module AppRegistry is not a registered callable module
256+
257+ ``` bash
258+ npm cache clean --force
259+ watchman watch-del-all
260+ rm -rf node_modules
261+
262+ # for ios
263+ cd ios
264+ pod update / pod install
265+ cd ..
266+ npx react-native run-ios
267+ # for android
268+ cd android && ./gradlew clean
269+ cd ..
270+ npx react-native run-android
271+ ```
272+
273+ Reference: [ https://stackoverflow.com/questions/64768328/invariant-violation-module-appregistry-is-not-a-registered-callable-module-cal ] ( https://stackoverflow.com/questions/64768328/invariant-violation-module-appregistry-is-not-a-registered-callable-module-cal )
252274
253275### RCTBridge required dispatch_sync to load RNGestureHandlerModule
254276
0 commit comments