react-native-keyboard-aware-scroll-view
react-native-keyboard-aware-scroll-view copied to clipboard
iOS scroll to top when rerender component
I create an animated KeyboardAwareScrollView like this: const AnimatedAwareScrollView = Animated.createAnimatedComponent( KeyboardAwareScrollView );
and i use this component. But when component rerender scroll to top in ios.
Same issue. Did you find any way to fix this @fatihkayan20 ?
Found, const AnimatedKeyboardAwareScrollView = Animated.createAnimatedComponent(KeyboardAwareScrollView);
should be moved outside of the component function to avoid being reinitialized at each rerender.