Skip to content

Commit 9bf0a09

Browse files
zoontekSalakar
authored andcommitted
[v5] add new react-native.config.js file (#2335)
* Fixes autolinking for RN 0.60+ * Add react-native cli android config (even if it's seems ignored in the current release)
1 parent 447cf37 commit 9bf0a09

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

package.json

-7
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,6 @@
107107
"opencollective-postinstall": "^2.0.0",
108108
"prop-types": "^15.7.2"
109109
},
110-
"rnpm": {
111-
"android": {
112-
"buildPatch": " implementation project(':react-native-firebase')",
113-
"packageImportPath": "import io.invertase.firebase.RNFirebasePackage;",
114-
"packageInstance": "new RNFirebasePackage()"
115-
}
116-
},
117110
"collective": {
118111
"type": "opencollective",
119112
"url": "https://opencollective.com/react-native-firebase"

react-native.config.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const path = require('path');
2+
3+
module.exports = {
4+
dependency: {
5+
platforms: {
6+
ios: { podspecPath: path.join(__dirname, 'ios', 'RNFirebase.podspec') },
7+
android: {
8+
packageImportPath: 'import io.invertase.firebase.RNFirebasePackage;',
9+
packageInstance: 'new RNFirebasePackage()',
10+
},
11+
},
12+
},
13+
};

0 commit comments

Comments
 (0)