You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@nativescript/firebase-core

Package Overview
Dependencies
Maintainers
18
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nativescript/firebase-core

NativeScript Firebase - Core

3.0.0
Source
npm
Version published
Weekly downloads
1.8K
-15.43%
Maintainers
18
Weekly downloads
 
Created
Source

@nativescript/firebase-core

A plugin to initialize FirebaseApp in your app. It should be used with any of:

Installation

npm install @nativescript/firebase-core

Configure Firebase for Android

To configure Firebase for Android, visit Add Firebase to your Android project and follow the steps below.

Configure Firebase for iOS

To set up Firebase for iOS, visit Add Firebase to your Apple project and follow the steps below:

Use @nativescript/firebase-core

Instantiate Firebase and initialize a default app

Import the firebase function and call it to create a NativeScript Firebase instance. Next, call the initializeApp method on the Firebase instance to instantiate the native FirebaseApp.

import { firebase } from '@nativescript/firebase-core'
const defaultApp = await firebase().initializeApp();
Initialize Secondary App
import { firebase, FirebaseOptions } from '@nativescript/firebase-core'
const config = new FirebaseOptions()
const secondaryApp = await firebase().initializeApp(config, 'SECONDARY_APP');

License

Apache License Version 2.0

Keywords

NativeScript

FAQs

Package last updated on 28 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts