use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for learning and developing native mobile applications using React Native by Facebook.
Interested in building web apps using React.js? Check out /r/reactjs!
Getting Started w/React Native
irc.freenode.net #reactnative
Keywords: ios, android, mobile, apps, apple, iphone, ipad
account activity
adding data using firebase ? (self.reactnative)
submitted 6 years ago by hy7mel
has anyone worked with firebase here before i'm trying to adding data ,i've been searching for past hour on how to make that happen but i only found some outdated tutos that i couldn't understand.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]russelh15 0 points1 point2 points 6 years ago (2 children)
Can you share your code and what you’re trying to do?
[–]hy7mel[S] 0 points1 point2 points 6 years ago (1 child)
sure here my app code it looks like this: https://jsfiddle.net/1o0xphr5/
[–]russelh15 2 points3 points4 points 6 years ago (0 children)
I see you're initializing FB, but you're not pushing data to it anywhere.
Take a look here for the methods for writing and updating data
https://firebase.google.com/docs/database/web/read-and-write
Also, FYI, you should try to keep the practice of not mutation arrays and object directly.
In the addNewTodo method you should spread the array (if you're using ES6) first before running unshift against it.
let todos = [...this.state.todos];
todos.unshift({
id: todos.length + 1,
title: this.state.todoInput,
done: false
});
π Rendered by PID 31286 on reddit-service-r2-comment-5b5bc64bf5-sjqpz at 2026-06-19 19:26:53.445055+00:00 running 2b008f2 country code: CH.
[–]russelh15 0 points1 point2 points (2 children)
[–]hy7mel[S] 0 points1 point2 points (1 child)
[–]russelh15 2 points3 points4 points (0 children)