Instal the new for android Monterey1/17/2024 ![]() ![]() įollow these directions to create a new Expo project. Since Expo Go will not work with react-native-firebase, the suggested workflow is to use a (. If you're using Bare Workflow, please follow the above Android Setup and iOS Setup steps. Where possible, it is recommended by the Expo team to use Managed Workflow. React Native Firebase cannot be used in the "Expo Go" app, because it requires custom native code. Integration with Expo is possible in both Bare Workflow, and custom Managed Workflow via config plugins. You can follow the manual installation steps for iOS and Android. If you're using an older version of React Native without autolinking support, or wish to integrate into an existing project, This module does not provide much functionality, therefore to use other Firebase services, each of the modules for the individual Firebase services need installing separately. Once successfully linked and rebuilt, your application will be connected to Firebase using the module. To automatically link the package, rebuild your project: Requiring no further manual installation steps. Users on React Native 0.60+ automatically have access to " autolinking", Once the above steps have been completed, the React Native Firebase library must be linked to your project and your application needs to be rebuilt. Community support to help fix use_frameworks support for New Architecture is welcome! 4. New Architecture: Fabric is not compatible with use_frameworks!. To use use_frameworks with Hermes, make sure you have set static linkage with use_frameworks! :linkage => :static. Hermes: a fix was put in place in react-native release 0.69.1 that allows Hermes to work with use_frameworks!. You need to disable Flipper by commenting out the :flipper_configuration line in your Podfile. Notes: React-Native-Firebase uses use_frameworks, which has compatibility issues with Flipper, Hermes & Fabric.įlipper: use_frameworks is not compatible with Flipper. # right after `use_frameworks! :linkage => :static` $RNFirebaseAsStaticFramework = true This requires modification to twoįirst, add the google-services plugin as a dependency inside of your /android/adle file: To allow Firebase on Android to use the credentials, the google-services plugin must be enabled on the project. Configure Firebase with Android credentials Then, you can add those keys to the 'SHA certificate fingerprints' on your app in Firebase console.ĭownload the google-services.json file and place it inside of your project at the following location: /android/app/google-services.json. You have to copy both 'SHA1' and 'SHA-256' keys that belong to the 'debugAndroidTest' variant key option. To generate a certificate run cd android &. The debug signing certificate is optional to use Firebase with your app, but is required for Dynamic Links, Invites and Phone Authentication. Manifest tag within the /android/app/src/main/AndroidManifest.xml file within your project for projects using android gradle plugin v7 and below Local projects package name which can be found inside of the namespace field in /android/app/adle, or in the The "Android package name" must match your On the Firebase console, add a new Android application and enter your projects details. To allow the Android app to securely connect to your Firebase project, a configuration file must be downloaded and added # Using npm npm install -save Using Yarn yarn add module must be installed before using any other Firebase service. Install the React Native Firebase "app" module to the root of your React Native project with NPM or Yarn: Installing React Native Firebase to a RN CLI project requires a few steps installing the NPM module, adding the Firebase config files &įor projects using Expo, see this section below. Installation for React Native CLI projects React Native - Setting up the development environmentĪdditionally, current versions of firebase-ios-sdk have a minimum Xcode requirement of 14.1, which implies a minimum macOS version of 12.5 (macOS Monterey).If you do not meet these prerequisites, follow the links below: Prerequisitesīefore getting started, the documentation assumes you are able to create a project with React Native and that you have an active Firebase project. React Native Firebase fully supports React Native apps built using React Native CLI or using Expo. React Native Firebase is the officially recommended collection of packages that brings React Native support for all Firebase services on both Android and iOS apps.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |