react-native-firestack icon indicating copy to clipboard operation
react-native-firestack copied to clipboard

[v3] Missing Firestack Module Documentation

Open wontwon opened this issue 7 years ago • 5 comments

Hi -- I've been trying to implement firestack into my react-native app with redux, but following along the tutorial here has been a challenge -- Possibly because there have been updates made recently?

I'm looking forward to when you release more on how to use the module. Thank you.

wontwon avatar Nov 19 '16 22:11 wontwon

@wontwon sorry about this, we're in the middle of standardising the library to match the web api.

Check out the v3 branch/my fork, its the latest and is worked on frequently - there are some docs (auth module being the most documented there at the moment). The idea is you should be able to follow the official google firebase web api documents with only a few minor differences.

Salakar avatar Nov 20 '16 01:11 Salakar

I posted a rough usage example of auth here: https://github.com/fullstackreact/react-native-firestack/issues/140 (my 2nd comment)

Salakar avatar Nov 20 '16 01:11 Salakar

@Salakar - Thanks for the quick response. I've been enjoying the firestack library so far and have figured out how to use firestackmodule. My only major question: Is there any way to pass params to the query event? Example: I'd like to query all posts by user "123", which I would normally use .equal on a firebase ref.

Appreciate the help @Salakar :)

wontwon avatar Nov 20 '16 08:11 wontwon

@wontwon could you try .equalTo - equalTo(value: any, key?: string): Reference from https://firebase.google.com/docs/reference/js/firebase.database.Reference#equalTo - have checked the code and the same method exists on firestack.

Salakar avatar Nov 21 '16 14:11 Salakar

@Salakar In my opinion, Firestack Module documentation is very important because actually it's not simple for a beginner to use firestack with redux

remiroyc avatar Mar 22 '17 08:03 remiroyc