Skip to content
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

I added TextInput in Scrollview and I found that Keyboard obscures TextInput. #71

Open
YanfangLi248 opened this issue May 10, 2018 · 6 comments

Comments

@YanfangLi248
Copy link

YanfangLi248 commented May 10, 2018

I added TextInput in Scrollview and I found that Keyboard obscures TextInput.
<ScrollView> <View> ....... </View> <TextInput/> <KeyboardSpace/> </ScrollView>

@hieunc229
Copy link

@YanfangLi248 I had the same issue, I have created a different method and publish it on react-native-spacer. It should fix the issue!

@dextermb
Copy link

@hieunc229 your POC does not seem to work at all

@hieunc229
Copy link

Thanks for checking out the repo, @dextermb. Can I have a little more details about your situation? (It'd be great if there is something like a Expo's Snack demo). I could help

@dextermb
Copy link

dextermb commented Sep 12, 2018

@hieunc229 I ended up using the demo from your README.

I have a Pixel 2 XL, so the input wouldn't get hidden by the keyboard so I increased the scale of the UI to make it so it did happen. But when I came to focusing the input it would simply sit underneath the keyboard.

Not sure if its something to do with UI scale effecting the dimensions.


Edit: Eitherway, probably shouldn't be discussing your project here. Feel free to open a thread on your side and I'll continue to help you debug.

@hieunc229
Copy link

@dextermb Agree! Though, I am unable to test it on different devices.

P/s: I've just updated the demo as it was using an older version.

@A-Shleifman
Copy link

The library react-native-keyboard-aware-scroll-view deals with the problem very well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants