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

KeyboardAwareScrollView jumps when the text is near the keyboard #613

Open
iphonic opened this issue Oct 1, 2024 · 1 comment
Open

KeyboardAwareScrollView jumps when the text is near the keyboard #613

iphonic opened this issue Oct 1, 2024 · 1 comment
Assignees
Labels
🐛 bug Something isn't working KeyboardAwareScrollView 📜 Anything related to KeyboardAwareScrollView component

Comments

@iphonic
Copy link

iphonic commented Oct 1, 2024

ScrollView starts jumping to top and bottom when the KeyboardAwareScrollView starts acting to scroll up the TextInput

Basic code used

Styles

safeAreaView: {
    flex: 1
}

main: {
    flex: 1,
    marginBottom: 0,
}

contentContainer:{
    padding: 15,
    flexGrow: 1,
}

contentText:{
    flex: 1,
    fontSize: 16,
    minHeight: 60,
    textAlignVertical: 'top',
}

return <SafeAreaView style={styles.safeAreaView} edges={["top"]}>
      <View style={styles.main}>
        <KeyboardAwareScrollView>
          <View style={styles.contentContainer}>
            <TextInput
              style={styles.contentText}
              multiline
              value={message}
              onChangeText={(value) => setMessage(value)}
              scrollEnabled={false}
            />
          </View>
        </KeyboardAwareScrollView>
      </View>
</SafeAreaView>

ScreenRecording2024-10-02at1 01 13AM

  • MacOS 14.4.1
  • Device: iPhone 13 Simulator
  • OS: 17.4
  • RN version: 0.73.0
  • Library version: 1.14.0
@kirillzyusko
Copy link
Owner

Thanks @iphonic

I'll check it! I'm currently still sick, but will try to find some time for that 👀

@kirillzyusko kirillzyusko added KeyboardAwareScrollView 📜 Anything related to KeyboardAwareScrollView component 🐛 bug Something isn't working labels Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working KeyboardAwareScrollView 📜 Anything related to KeyboardAwareScrollView component
Projects
None yet
Development

No branches or pull requests

2 participants