Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Commit

Permalink
fix: Add react-native.config.js due to rnpm's removal (#392)
Browse files Browse the repository at this point in the history
Fixes #377
  • Loading branch information
bengourley authored and kattrali committed Aug 9, 2019
1 parent 73d75c5 commit 9fbeed1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"cocoa/BugsnagReactNative.{h,m,xcodeproj}",
"cocoa/vendor/bugsnag-cocoa/Source/**/*.{h,m,mm,cpp,c}",
"cocoa/vendor/bugsnag-cocoa/iOS/{Bugsnag.xcodeproj,Info.plist,module.modulemap}",
"BugsnagReactNative.podspec"
"BugsnagReactNative.podspec",
"react-native.config.js"
],
"scripts": {
"prepublish": "mkdir -p lib && babel --source-maps --out-dir='lib' --ignore='__tests__' src",
Expand Down
15 changes: 15 additions & 0 deletions react-native.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
dependency: {
platforms: {
ios: {
sharedLibraries: [ 'libz' ]
},
android: {
packageInstance: 'BugsnagReactNative.getPackage()',
packageImportPath: 'import com.bugsnag.BugsnagReactNative;'
}
},
assets: [],
hooks: {}
}
}

0 comments on commit 9fbeed1

Please sign in to comment.