Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react-native-keyboard-aware-scroll-view is not working for Modal window fields

Tags:

react-native

I applied react-native-keyboard-aware-scroll-view in app.js (which is base file for my app) to make it work throughout the application.

return ( 
            <KeyboardAwareScrollView>              
              <AppInitialComponent /> 
              <RouterBar />
            </KeyboardAwareScrollView>
      );

And my application contains several Modal windows with fields.

Package is working fine for the fields which are out side of the Modal windows , But not working for the fields which are inside the Modal windows.

Do I need to call react-native-keyboard-aware-scroll-view from some where else to make it work for Modal window fields as well?

like image 994
Mighty Avatar asked Dec 03 '25 02:12

Mighty


1 Answers

Don't put in app.js if you have modals. Include it where needed. e.g.

   <Modal>
      <KeyboardAwareScrollView>
like image 192
Martin Lockett Avatar answered Dec 05 '25 11:12

Martin Lockett



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!