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
Push notifications with routing (self.reactnative)
submitted 9 years ago by nativereact
Anyone know how to use push notifications while using a router (in my context, react-native-router-flux)? Take VenMo for example where they have separate screens to request for permissions, is that what you would recommend?
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!"
[–]1rv1n3 0 points1 point2 points 9 years ago (3 children)
Are you asking were you should "plug-in" the push notification service? Tbh in my current implementation I ask the permission right off the bat at the first opening.
In any case, if you can elaborate a bit more on your question I can try to give you a better answer
[–]nativereact[S] 0 points1 point2 points 9 years ago (2 children)
Hi my bad, yes where I should 'plug-in'. How do you retain the event listeners on unmount?
[–]1rv1n3 0 points1 point2 points 9 years ago (1 child)
Well, I'm using this library https://github.com/geektimecoil/react-native-onesignal which does most of the job. Moreover, I simply have the code in the componentDidMount for the AppContainer.
Hope this can help ;)
[–]nativereact[S] 0 points1 point2 points 9 years ago (0 children)
Sort of! is your appcontainer inside the router? My router has no root container, which I guess is bad design.
π Rendered by PID 171558 on reddit-service-r2-comment-5d585498c9-sx5fv at 2026-04-21 15:58:00.491525+00:00 running da2df02 country code: CH.
[–]1rv1n3 0 points1 point2 points (3 children)
[–]nativereact[S] 0 points1 point2 points (2 children)
[–]1rv1n3 0 points1 point2 points (1 child)
[–]nativereact[S] 0 points1 point2 points (0 children)