Closed redpandatronicsuk closed 5 years ago
native code projects on react-native have all moved to this style to manage dependencies, it is aimed precisely at the dependency tangle you seem to be in
https://github.com/invertase/react-native-firebase-starter/blob/master/android/build.gradle#L3
I encourage you to look very closely at the starter project I linked above, get it working, then carefully move pieces in to your app one by one
@mikehardy Thanks, I'll give that a try
@redpandatronicsuk after ejecting at SDK 32, and moving to using RNF, I had to update com.google.android.gms:play-services-analytics
to 16.0.6
to resolve that same issue, after it was confirmed that Expo was dropping the expo-firebase
endeavor for the time being.
@redpandatronicsuk after ejecting at SDK 32, and moving to using RNF, I had to update
com.google.android.gms:play-services-analytics
to16.0.6
to resolve that same issue, after it was confirmed that Expo was dropping theexpo-firebase
endeavor for the time being.
can you share your setup for your ejected app to using RN Firebase please?? i have this problem almost for a week.
@hotaryuzaki this works for me 👇
implementation project(path: ':react-native-firebase', configuration: 'default')
// Required dependencies
//noinspection GradleCompatible
compileOnly "com.google.android.gms:play-services-base:15.0.1"
api "com.google.firebase:firebase-core:16.0.1"
// Authentication
api "com.google.firebase:firebase-auth:16.0.4"
api "com.google.firebase:firebase-functions:16.1.2"
// Cloud Firestore
api "com.google.firebase:firebase-firestore:17.1.2"
// Cloud Messaging / FCM
api "com.google.firebase:firebase-messaging:17.3.3"
api "com.google.firebase:firebase-invites:16.0.1"
api 'com.google.firebase:firebase-inappmessaging-display:17.0.1'
}
Issue
I removed
expo-firebase
from my app as it is deprecated now. I tried to addreact-native-firebase
, but got too many build errors (on Android), so decided to do a fresh ExpoKit eject. I followed the installation guide, but after changingcom.google.gms:google-services:3.2.1
tocom.google.gms:google-services:4.0.1
I get this error when trying to build:I tried adding
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
to the bottom ofapp/build.gradle
, but then get:Project Files
iOS
ios/Podfile
:AppDelegate.m
:Android
android/build.gradle
:android/app/build.gradle
:android/settings.gradle
:MainApplication.java
:AndroidManifest.xml
:Environment
ADD_SOMETHING_HERE
e.g. iOS 10 or Android API 28N/A
N/A
N/A
ADD_SOMETHING_HERE
e.g. Xcode 10, Android Studio 3.2 Android Studio 3.3.2React Native
version: https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gzADD_SOMETHING_HERE
React Native Firebase
library version:ADD_SOMETHING_HERE
Firebase
module(s) you're using that has the issue:TypeScript
?N/A
ExpoKit
?ExpoKit
32
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on Twitter