Skip to content
New issue

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

React Native example #2

Open
tobiaseisenschenk opened this issue Jun 27, 2019 · 0 comments
Open

React Native example #2

tobiaseisenschenk opened this issue Jun 27, 2019 · 0 comments

Comments

@tobiaseisenschenk
Copy link

Would be great to have an example for how to use rxfire with react-native.

I guess the problem is that the rnfirebase api differs from firebase web. Therefore the authentication example does not work as described in the rxfire docs.
Something like:
const loggedIn$ = authState(firebase.auth()); loggedIn$.subscribe(user => { console.log(user); });
would error with listener is not a function.
However subscribing to rt-database objects works just like expected. But I could also simply fromEvent(ref, 'value') at this point i guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant