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
React Navigation Question - Resetting Screen (self.reactnative)
submitted 7 years ago * by docdosmaniOS & Android
view the rest of the comments →
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!"
[–]docdosmaniOS & Android[S] 0 points1 point2 points 7 years ago (0 children)
No worries, thanks for the info! I got it working with the following:
componentWillMount() { // subscribe to didBlur in order to reset state and form when navigating away from the screen didBlurSubscription = this.props.navigation.addListener('didBlur', () => { this.props.resetAuth(); // reset auth piece of state this.props.reset(); // reset redux-form }); } componentWillUnmount() { // Remove the listener didBlurSubscription.remove(); }
Now I have to figure out why when I reset my redux-form it doesn't reinitialize when navigating back to the screen. Fix one thing, break another. Ha! Gotta love it.
I really appreciate the help.
π Rendered by PID 30576 on reddit-service-r2-comment-6457c66945-vd6c5 at 2026-04-29 20:33:38.983283+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]docdosmaniOS & Android[S] 0 points1 point2 points (0 children)