Actually i am working on chat window. Chat window will have different type of display types like text, selection box, dropdown, etc.So now i have taken keyboardavoidingview as root view and inside this i have used flatlist to render different types.But if i click on any item keyboard is closing in ios simulator. How to handle this one.
code:
<SafeAreaView style={{flex: 1}} forceInset={{top: 'never'}}>
<HeaderComponent></HeaderComponent>
<KeyboardAvoidingView behavior= {(Platform.OS === 'ios')? "padding" : null}
behavior="height"
style={{flex: 1}}>
<View style={{flex: 1, backgroundColor: '#F2F2F2'}}>
<FlatList
ref='lst'
keyExtractor={(item, index) => index.toString()}
/>
</View>
</KeyboardAvoidingView>
</SafeAreaView>