We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I've got a question concerning how to use the library. According to the config I have to create an firestack instance like this:
const firestack = new Firestack();
However, what if I'm using Firestack in multiple files? Can I create a new instance per file in which I need it? Is this the preferred approach?
// file1.js import Firestack from 'react-native-firestack'; const firestack = new Firestack(); ... do some logic here
// file2.js import Firestack from 'react-native-firestack'; const firestack = new Firestack(); ... do some logic here
Cheers, Hein
The text was updated successfully, but these errors were encountered:
Hein,
Thanks for the question. It's actually a singleton object, so you can call new Firestack() and it will reference the same object.
new Firestack()
Sorry, something went wrong.
No branches or pull requests
Hi, I've got a question concerning how to use the library.
According to the config I have to create an firestack instance like this:
However, what if I'm using Firestack in multiple files? Can I create a new instance per file in which I need it? Is this the preferred approach?
Cheers, Hein
The text was updated successfully, but these errors were encountered: