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

[Bug] KeyboardAwareScrollView is not work well in Android only #576

Open
hjun555 opened this issue Feb 6, 2024 · 6 comments
Open

[Bug] KeyboardAwareScrollView is not work well in Android only #576

hjun555 opened this issue Feb 6, 2024 · 6 comments

Comments

@hjun555
Copy link

hjun555 commented Feb 6, 2024

untitled.webm

Issue

When focus on Textinput in Android, scrolloffset shivers vertically and the focused textinput is overlapped with keyboard!
Anyone have fixed this bug?
IOS is okay.

Code

<KeyboardAwareScrollView
              bounces={false}
              extraScrollHeight={38}
              enableOnAndroid
              contentContainerStyle={{
                flexGrow: 1,
              }}
              bounces={false}
              onScrollBeginDrag={() => Keyboard.dismiss()}
              // automaticallyAdjustKeyboardInsets
            >
              <Pressable
                style={[
                  Layout.fill,
                  { backgroundColor: Colors.background, paddingBottom: 300 },
                ]}
                disabled={portfolioUpdating}
                onPress={() => {
                  Keyboard.dismiss()
                }}>
                <View style={styles.inputItemCard}>
                  <View style={Layout.row}>
                    <TextOneLine style={{ fontFamily: 'NotoSansKR-Bold' }}>
                      이름
                    </TextOneLine>
                  </View>
                  <TextInput
                   
                    multiline={true}
                    numberOfLines={1}
                    keyboardType="default"
                    placeholder="이름을 입력해주세요."
             
                  />
                </View>
                <View style={styles.inputItemCard}>
                  <View style={Layout.row}>
                    <TextOneLine style={{ fontFamily: 'NotoSansKR-Bold' }}>
                      설명1
                    </TextOneLine>
                  </View>
                  <TextInput
                    
                    onChangeText={text => {
                      
                    }}
                  />
                </View>

                <View style={styles.inputItemCard}>
                  <View style={Layout.row}>
                    <TextOneLine style={{ fontFamily: 'NotoSansKR-Bold' }}>
                      이름
                    </TextOneLine>
                  </View>
                 
                  <TextInput
                     onChangeText={text => {}}
                  />
                </View>
                </Pressable>
            </KeyboardAwareScrollView>
@eddi00
Copy link

eddi00 commented Feb 7, 2024

Same, I'm on Expo 50

@m-usman-yousuf
Copy link

same issue here

@xleddyl
Copy link

xleddyl commented Feb 23, 2024

Which version of Expo are you using? I'm on SDK 50, and I think that might be the issue

@devaray
Copy link

devaray commented Mar 1, 2024

same issue did someone found the solution?

@ZaharGusyatin
Copy link

same issue, any update?

@december1990
Copy link

december1990 commented Apr 12, 2024

the same issue

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

7 participants