-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set ScrollView manually #10
Comments
Hi @diegolmello Initially we had some synchronization issues when we attempted to set the scroll-view from a ref, so this is the solution we ended up with. As you noticed, this issue can happen when you use a JS based navigation. With native solutions like react-native-navigation this can't happen because each screen has it's own root view. As a solution you can try to use the |
@artald I am already using |
I am using Navigator from react-native-deprecated-custom-components as mentioned by @artald it will not work with js based. But the fix below works for me: KeyboardTrackingViewManager.m
Hope this helps |
I need the ability to set scrollview with ref.
The same way react-native-keyboard-input does on kbInputRef.
I found that the iteration below finds the wrong scrollview when using react-navigation.
https://github.com/wix/react-native-keyboard-tracking-view/blob/master/lib/KeyboardTrackingViewManager.m#L127
So it would be awesome to set scrollview inside the code.
Also it would be unnecessary to do that loop.
The text was updated successfully, but these errors were encountered: