New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

stuffy-granny-lib

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stuffy-granny-lib

Library for working with firestore(RN+R) for pet-project 'Stranger Places' App.

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
2
Created
Source

Stuffy Granny

Current library is interlayer beetween firebase/firebase-firestore and your own project. Stuffy Granny is helper to request data from firestore. Own project is pet-project Stranger Places App. The idea of it, Improve you skills to create light-way mobile app by RN. Supported React native and written on TS.

Some information about package that you should know before use it

Installation

yarn add stuffy-granny-lib

npm install stuffy-granny-lib

###!important Before install current library to you project, You need to install everything for firebase-firestore.

To get config of firebase app, request it from Stuffy or Granny!=)

Usage

Create a file in root of your project, reccomened to named sglib.config.tsx

Import firestore
import firestore from '@react-native-firebase/firestore';
Import stuffy-granny-lib
import StuffyGrannyLib from 'stuffy-granny-lib';
Create instance of stuffy-granny-lib class with argument firestore and export it.
export const DB = new StuffyGrannyLib(firestore);

Done!! Now if you need to make some requests to firestore, you need to import DB, and use method that you need. Example:

...
	async () => {
		const result = await DB.getAllUsers();
	}
...

Methods

Methods will add soon. Check methods of class StuffyGranny in index.tsx of library.

FAQs

Package last updated on 11 Oct 2021

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