bitcoinvsalts / react-native-firebase-starter

The ultimate React Native starter using Firebase, Mobx, CodePush, OneSignal made with ♥
http://jsapp.me
MIT License
287 stars 56 forks source link

Not able to edit user name #6

Closed bartonhammond closed 7 years ago

bartonhammond commented 7 years ago

Need way to edit user name?

bitcoinvsalts commented 7 years ago

The last commit covers this new feature. Please feel free to give me your feedback about i.

Hervé

bartonhammond commented 7 years ago

Nice work on the form and navigation.

This exposes the issue #8 Posts are owned by User Name rather then Users.uuid

You can see in the image below that when I change my name to "Barton W Hammond" after creating two posts and then add another post, the name on the first 2 posts have my old name "Barton Hammond". I don't think the posts should have the name in them, but rather the uuid of the user.

I think this if the data is flattened you can do a join between the post and the user as discussed here: https://www.firebase.com/docs/web/guide/structuring-data.html#section-join

screen shot 2016-11-15 at 1 16 41 pm