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

Feature: keyboard aware scrolling for pages #94

Open
rennehir opened this issue Oct 19, 2020 · 4 comments
Open

Feature: keyboard aware scrolling for pages #94

rennehir opened this issue Oct 19, 2020 · 4 comments

Comments

@rennehir
Copy link

Awesome library, and it enabled us to build a solid onboarding flow to our application very fast!

But one thing we wanted to do on one of the onboarding screens was to collect the users email address. Overriding the subtitle component via props worked very well here. Problem arised when the keyboard popped up and covered most of the screen, and of course the input component as well.

I forked the repo and made a quick fix using a library called react-native-keyboard-aware-scroll-view. I wrapped the Page component with the KeyboardAwareScrollView and everything works well, at least for our purposes.

I think that this feature could help a lot of other devs as well.

My way of fixing the problem is only one way. One other way for implementing this would be to enable overriding the whole Page component for even more flexibility, but then the users might lose some of the out-of-the-box features like animating the background colors.

@jfilter do you see this as a feature that could be implemented in the library? I am happy to help thinking through the implementation, or even making a proper pull request after agreeing upon the implementation details :)

@raquelmsmith
Copy link

@rennehir Just ran into this problem myself. Do you by chance know how I could fix it without forking the library? I like to avoid forking libraries as much as I can so I can easily get updates in the future.

Thanks!

@rennehir
Copy link
Author

@raquelmsmith I have continued to use the forked version. At least when we tried, we did not find a workaround without forking.

@raquelmsmith
Copy link

Bummer ok. Are you by chance able to share your fork?

@rennehir
Copy link
Author

@raquelmsmith here you go: https://github.com/shareway-oy/react-native-onboarding-swiper

We haven't been updating it for over a year, and actually a while ago stopped using the whole library. We implemented our onboarding using react-native-tab-view. Feel free to use our fork or take a look how we solved the problem and make your own.

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

No branches or pull requests

3 participants