APSL / react-native-keyboard-aware-scroll-view

A ScrollView component that handles keyboard appearance and automatically scrolls to focused TextInput.
MIT License
5.27k stars 646 forks source link

Doesn't work on: KeyboardAwareScrollView #490

Open vladimendoza opened 3 years ago

vladimendoza commented 3 years ago

but for some reason it doesn't work, can you help me? when clicking inside the input absolutely nothing happens

flexbox commented 3 years ago

Hey @Bladymendoza97 Can you provide a screenshot or better a gif? it will help us to identify the problem 😉

besthost86 commented 2 years ago

Works on Android 9. I coudn't get it to work with KeyboardAvoidingView

  return (
    <KeyboardAwareScrollView contentContainerStyle={{ flex: 1, justifyContent: "flex-end" }} enableOnAndroid={true} extraScrollHeight={10}>
      <View style={styles.footer}>
        <View style={styles.inputContainer}>
          <TextInput style={styles.textInput} multiline placeholder='Message' onChangeText={text => setInputText(text)} value={inputText} />
          <TouchableOpacity style={styles.sendButton}>
            <Icon name='ios-send' size={30} color='darkgrey' />
          </TouchableOpacity>
        </View>
      </View>
    </KeyboardAwareScrollView>
  )