Closed MSchmidt closed 6 years ago
I'm having the same issue, with TabNavigator
, isFocused
is true by default on every single component it is attached to. Only after switching tabs first then the value is correctly updated.
Check out the PR @cidylle @MSchmidt
@ugiacoman nice, put this in and it works great.
The fix is in the v.1.1.0
Thanks for trying to figure this out. I've added this to the second tab in a
TabNavigator
and it mostly works. However, when the TabNavigator loads (on first tab) the prop (for second tab) is immediatelytrue
. Then nocomponentWillReceiveProps
is triggered when I switch to the tab. After that everything works as expected.