1.0.12 • Published 6 years ago

the-granary v1.0.12

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

The Granary

This is a store management class for React Native. This allows to store variables across components. It is a single source of truth without being intrusive or has not boilerplate setup. Clean and simple access to your session variables.

import TheGranary from 'TheGranary';

To set:

let g = TheGranary.getInstance()
g.setGranary("Tester", "This is grain");

To get:

let g = TheGranary.getInstance();
let t = g.getGranary("Tester");

this.setState({test: t});