From 78f824901b81cb25e1e2a6800bbdf1965a3880cb Mon Sep 17 00:00:00 2001 From: Ben Gourley Date: Fri, 2 Aug 2019 10:30:53 +0100 Subject: [PATCH] fix: Add react-native.config.js due to rnpm's removal Fixes #377 --- package.json | 3 ++- react-native.config.js | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 react-native.config.js diff --git a/package.json b/package.json index e17ff917..40104040 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/react-native.config.js b/react-native.config.js new file mode 100644 index 00000000..f32efd29 --- /dev/null +++ b/react-native.config.js @@ -0,0 +1,15 @@ +module.exports = { + dependency: { + platforms: { + ios: { + sharedLibraries: [ 'libz' ] + }, + android: { + packageInstance: 'BugsnagReactNative.getPackage()', + packageImportPath: 'import com.bugsnag.BugsnagReactNative;' + } + }, + assets: [], + hooks: {} + } +}