You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a header like the one in the Twitter Android app, which contains a floating View that moves around as the user is scrolling in the ContentView. The floating View should initially be rendered on top of the ContentView, and when the user scrolls, the floating View gradually moves towards the TopBar.
It's not clear whether react-native-navigation supports this, so I'm filing this issue either as a feature request or as a bug (in case it was meant to be supported).
Steps to Reproduce / Code Snippets / Screenshots
One screen with a custom nav bar is enough to reproduce this.
Then, using transform styles on the floating View, we should be able to affect translateX and translateY with the Animated.Value API in React Native. Example:
Issue Description
I'm building a header like the one in the Twitter Android app, which contains a floating View that moves around as the user is scrolling in the ContentView. The floating View should initially be rendered on top of the ContentView, and when the user scrolls, the floating View gradually moves towards the TopBar.
It's not clear whether react-native-navigation supports this, so I'm filing this issue either as a feature request or as a bug (in case it was meant to be supported).
Steps to Reproduce / Code Snippets / Screenshots
One screen with a custom nav bar is enough to reproduce this.
Then, using transform styles on the floating View, we should be able to affect
translateX
andtranslateY
with the Animated.Value API in React Native. Example:Actual screen when scroll yoffset=0:
⬆️ Should have been a square partially covering the nav bar, partially covering the content view
Actual screen when scroll yoffset=100:
⬆️ Correct
Environment
The text was updated successfully, but these errors were encountered: