I am using react native’s core component TextInput. Everything was working fine but suddenly TextInputs are not showing in the app and stopped working in iOS only. If i am adding borderWidth it is also not working on the textinputs.
I also tried to upgrade react native with latest version but still same issue is there.
My project is on 0.72.6 version of React Native
I upgraded the latest version of React Native. I checked on 0.73.6 and 0.74
I have also added height to the textinputs
import {
View,
TextInput,
} from “react-native”;
<TextInput
style={styles.input}
placeholder="What are you looking for?"
value={searchQuery}
onChangeText={(query) => {
handleSearchInputChange(query);
setInputFocused(true);
}}
onBlur={handleInputBlur}
/>`
input: {
flex: 1,
height:50,
},
Simranjeet Kaur is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.