npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mayo-firebase-config

v1.2.24

Published

__rn-firebase-config__ is a React Native module designed to extract Firebase configuration details from native files (google-services.json for Android and GoogleService-Info.plist for iOS) to be used in JavaScript code. How it Works

Downloads

46

Readme

Description

rn-firebase-config is a React Native module designed to extract Firebase configuration details from native files (google-services.json for Android and GoogleService-Info.plist for iOS) to be used in JavaScript code. How it Works

Behind the scenes, mayo-firebase-config employs native modules in both Android and iOS:

  • Android: Reads the google-services.json file from the assets folder, extracts the required Firebase configuration details, and returns them to the React Native JavaScript layer.

  • iOS: Reads the GoogleService-Info.plist file, extracts the required Firebase configuration details, and returns them to the React Native JavaScript layer.

How to Use

Ensure that you have the google-services.json file in the assets folder for Android and the GoogleService-Info.plist in the main bundle for iOS.

Use the extractFirebaseConfig function in your React Native code as follows:


import { extractFirebaseConfig } from 'mayo-firebase-config';

const firebaseConfig = await extractFirebaseConfig();
console.log(firebaseConfig);

This function logs the extraction process and returns the extracted configuration. If the extraction is successful, you'll get an object with Firebase details; otherwise, a warning log indicates any issues. Points to Note

  • The module handles errors gracefully and will provide clear logs in case of extraction failures.

  • For security reasons, be cautious about logging the full Firebase config in a production environment as it may expose sensitive information.

Dependencies

React Native

Installation

For the module to work, you need to ensure that the native modules are correctly linked in your React Native project. Follow the standard React Native linking procedures for native modules if not using auto-linking. Contributing

We welcome contributions to mayo-firebase-config!

Here's how you can help:

  • Fork the Repository: Click on the 'Fork' button at the top right corner of this page.

  • Clone Your Forked Repository: git clone https://github.com/YOUR_USERNAME/mayo-firebase-config.git

  • Navigate to the cloned directory: cd mayo-firebase-config

  • Create a New Branch: git checkout -b new-feature-or-bug-fix

  • Make Changes: Implement your new feature or fix a bug and commit the changes.

  • Push to GitHub: git push origin new-feature-or-bug-fix

  • Submit a Pull Request: Go to the mayo-firebase-config GitHub page and click on the 'New Pull Request' button. Select your branch from the dropdown and submit your pull request.

  • Wait for the Review: Maintainers will review your pull request, suggest changes if necessary, and merge it once it's approved.

License

mayo-firebase-config is licensed under the MIT License. Refer to the LICENSE file in the repository for more details.