Skip to content

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

Open
@hjun555

Description

@hjun555
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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions