0

Hello can you help me to solve following issue on my ChatScreen...

I am using KeyboardAwareScrollView and don't know how to handle automatically this blank space when user dismiss the keyboard.

<KeyboardAwareScrollView
  contentContainerStyle={[styles.content, center && styles.contentCenter]}
  scrollEnabled={scrollEnabled}
  showsHorizontalScrollIndicator={false}
  showsVerticalScrollIndicator={false}
  enableResetScrollToCoords={false}
  automaticallyAdjustContentInsets={false}
  scrollIndicatorInsets={{ right: 1 }}
 >
  {children}
</KeyboardAwareScrollView>

enter image description here

savkevip
  • 43
  • 6

1 Answers1

0

This is work for me

<KeyboardAwareScrollView contentContainerStyle={{flex: 1}}>
    <View style={{flex: 1}}>

check these solutions [link] (react-native-keyboard-aware-scroll-view not working properly)

Raj Parmar
  • 83
  • 6
  • Tnx from this link for me same solution (`react-native-keyboard-aware-view`) is wokring but I have another issue with that solution: `Unsupported layout animation createConfig property...` – savkevip Jun 19 '23 at 06:54
  • check this out [link](https://github.com/facebook/react-native/issues/1135#issuecomment-98903335) – Raj Parmar Jun 19 '23 at 08:19
  • I have animation from vendor not my own. – savkevip Jun 20 '23 at 06:10