In React Navigation, screens seem to persist even after changing the screen. However, in React Native Navigation, all the screen appear to be refreshed after getting focused again, making it hard to persist data and lowering the user experience especially when using FlatList. Thus, I wonder whether there was a method to prevent this. Thanks!
Is there a way to stop re-rendering after navigation in React Native Navigation?
1.7k Views Asked by 西田龍 At
1
There are 1 best solutions below
Related Questions in REACT-NATIVE
- React Native: detect if UIVisualEffectView is supported
- Prevent Chrome debugger from stealing focus in React Native
- React-native upload image to amazons s3
- react-native update NavigatorIOS component's props
- promise – can't find variable process
- Using React Native within existing iOS app for some views only
- What is a good approach to building and distributing a React Native iOS component that extends iOS functionality?
- error in xcode 6 "is not registered as a URL scheme. Please add it in your Info.plist"
- DeviceEventEmitter stops emitting events to application when screen locked
- How to rename react-native entry file (index.ios.js)
- react-native component lifecycle methods not firing on navigation
- How to use comments in React
- react-native propagate changes in props through ListView and Navigator
- How do i use the iOS shake gesture with react native?
- TouchableHighlight won't accept press events while keyboard is open
Related Questions in REACT-NATIVE-NAVIGATION
- React Native Navigator : Expected a component class, got [object Object]
- react-native-navigation drawer not changing screens
- FAILURE: Build failed with an exception in React Native Android
- React Native Navigator Route Object is Undefined
- Does react-native-navigation 1.1.x works with tvos?
- 'getOwnPropertyDescriptor' on proxy: trap returned descriptor for property '0' that is incompatible with the existing property in the proxy target
- react-native-navigation | Setting initial screen without putting it as tab?
- undefined is not an object (evaluating _this2.props.navigation.navigate)
- I've two different react native packages which require different android compileSdkVersion, how do I fix this?
- How can I show a splash screen in React Native with React Native Navigation while loading app Redux state?
- Brownfield Navigation between Native Android Activities & React Native
- React Native Navigation : passing data between screen
- Issue in transferring API data from one screen to another
- React Navigation -- Using two navigators on a single screen
- Styling options for top bar menu actions in react-native-navigation
Related Questions in WIX-REACT-NATIVE-NAVIGATION
- Using react-native-gesture-handler (RNGH) inside a modal with wix/react-native-navigation
- React Native Navigation v6 using custom top bar component
- Wix's react-native-navigation, drawer and overlay
- How to use "sideMenu" and "bottomTabs" parameters nested?
- react native navigation reset stack or tab after reaching to last screen
- Is there a way to stop re-rendering after navigation in React Native Navigation?
- React Native Navigator Wix - BorderTop don't appears on the Bottom Tabs
- React Native Navigation Locks User Interaction
- react-native-navigation update child data but remain parent data
- How to add side menu icon in wix-react-native-navigation v2?
- Hide Android Navigator shows a border
- Pass data from side-menu to main scree in 'react-native-navigation'
- File not found: index.android.js in any of the project roots - React Native Navigation production packaging
- Q: Overflow menu with custom component instead of "the three dots"
- How to change rightButton image dynamically?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
RNN only renders screens once when they are created. Any other additional render is guaranteed to be caused by a call to
setStatein JS. Perhaps you're listening to thecomponentDidAppearevent and callingsetStatefrom there. Doing so will trigger a rerender each time a screen reappears.