const Example = () => {
const renderExample = ({item, index}) => <View style={{
padding: 10
}}
key={index}>
<TextInput defaultValue={index}
value={item.value}
style={{
width: 80,
height: 40,
backgroundColor: 'white',
color: 'black'
}} />
</View>
return <KeyboardAvoidingView behavior='padding' style={{flex: 1, height: '100%', width: '100%'}}>
<FlatList data={[{value: 1}, {value: 2}, {value: 3}, {value: 4}, {value: 5}]}
contentContainerStyle={{marginTop: '80%'}}
renderItem={renderExample}
ListFooterComponent={() => <FlatList horizontal={true} data={[6, 7, 8, 9, 10]} renderItem={renderExample} />}
/>
</KeyboardAvoidingView>
}
The keyboard closes input when
FlatList horizontal=truenested withinFlatList horizontal=false.. Only IOS.Repo for reproducing
Expected behavior
The keyboard does not close the input
Video
2026-04-15.10.29.27.mov
Smartphone (please complete the following information):