@react-native-firebase/app
Version:
A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Sto
28 lines (23 loc) • 784 B
text/typescript
import { ConfigPlugin, withPlugins, createRunOncePlugin } from '@expo/config-plugins';
import {
withApplyGoogleServicesPlugin,
withBuildscriptDependency,
withCopyAndroidGoogleServices,
} from './android';
import { withFirebaseAppDelegate, withIosGoogleServicesFile } from './ios';
/**
* A config plugin for configuring `@react-native-firebase/app`
*/
const withRnFirebaseApp: ConfigPlugin = config => {
return withPlugins(config, [
// iOS
withFirebaseAppDelegate,
withIosGoogleServicesFile,
// Android
withBuildscriptDependency,
withApplyGoogleServicesPlugin,
withCopyAndroidGoogleServices,
]);
};
const pak = require('@react-native-firebase/app/package.json');
export default createRunOncePlugin(withRnFirebaseApp, pak.name, pak.version);