React-native-keyboard-aware-scroll-view: Automatic scrolling not working on Android with latest Expo 34

Created on 24 Aug 2019  路  5Comments  路  Source: APSL/react-native-keyboard-aware-scroll-view

Hi,

It works all fine when I test on Expo App, but when I build standalone app on Android, automatically scrolling to focused field is not working. I have to then use scrollToInput method that you have mentioned in readme, I am also using react navigation 3.11.1. Any ideas what's going on?

Most helpful comment

I wrapped all the children inside the KeyboardAwareScrollView in a View and defined a big height value, it worked for me

               <KeyboardAwareScrollView
                  enableAutomaticScroll
                  extraScrollHeight={10}
                  enableOnAndroid={true}
                  extraHeight={Platform.select({ android: 100 })}
                  style={{ flexGrow: 1 }}
                >
                  <View style={{ height: 1000 }}>
                           {/*Children*/}
                  </View>
              </KeyboardAwareScrollView>

All 5 comments

the same issue

Had the same issue, used the enableOnAndroid flag on each one of the scroll views and that fixed my problem.

I having the same problem here.

I wrapped all the children inside the KeyboardAwareScrollView in a View and defined a big height value, it worked for me

               <KeyboardAwareScrollView
                  enableAutomaticScroll
                  extraScrollHeight={10}
                  enableOnAndroid={true}
                  extraHeight={Platform.select({ android: 100 })}
                  style={{ flexGrow: 1 }}
                >
                  <View style={{ height: 1000 }}>
                           {/*Children*/}
                  </View>
              </KeyboardAwareScrollView>

what's the diff between extraScrollHeight and extraHeight prop?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SunilPandey- picture SunilPandey-  路  4Comments

EdwardDrapkin picture EdwardDrapkin  路  4Comments

brunolemos picture brunolemos  路  3Comments

shimil2017 picture shimil2017  路  3Comments

yasaricli picture yasaricli  路  3Comments