@alaudoni/expo-firebase-extension-plugin
Version:
The Firebase Expo plugin allows you to use Firebase without leaving the managed workflow. Developed in collaboration with SweetGreen.
19 lines (18 loc) • 821 B
JavaScript
;
/**
* Expo config plugin for One Signal
* @see https://documentation.Firebase.com/docs/react-native-sdk-setup#step-4-install-for-ios-using-cocoapods-for-ios-apps
*/
Object.defineProperty(exports, "__esModule", { value: true });
const withFirebaseIos_1 = require("./withFirebaseIos");
const helpers_1 = require("../support/helpers");
const withFirebase = (config, props) => {
// if props are undefined, throw error
if (!props) {
throw new Error('You are trying to use the Firebase plugin without any props. Property "mode" is required. Please see https://github.com/Firebase/Firebase-expo-plugin for more info.');
}
(0, helpers_1.validatePluginProps)(props);
config = (0, withFirebaseIos_1.withFirebaseIos)(config, props);
return config;
};
exports.default = withFirebase;