I have 2 components: HomeScreen (initialRoute) and SettingScreen. When the right nav button is clicked, the SettingScreen is pushed to the navigator.
The problem is whenever the back button is clicked, the componentWillReceiveProps function in the HomeScreen triggers. Is this behavior intentional?
I have 2 components:
HomeScreen (initialRoute)andSettingScreen. When the right nav button is clicked, theSettingScreenis pushed to the navigator.The problem is whenever the back button is clicked, the
componentWillReceivePropsfunction in theHomeScreentriggers. Is this behavior intentional?