t4t5 / react-native-router

Awesome navigation for your React Native app.
MIT License
1.17k stars 155 forks source link

Keep hidden nav content item hidden after tween completion #45

Open jevakallio opened 9 years ago

jevakallio commented 9 years ago

When using backgroundColor: 'transparent' on Router.headerStyle, after navigating from initial route to a second route, the header content items are displayed one on top of another: screen shot 2015-07-06 at 17 10 11

This commit fixes the issue by setting the disappearing nav item's opacity tween end value to 0, instead of 1.

Thanks for all the great work on this component, @t4t5!