Используйте приведенный ниже код, который помогает изменить цвет границы реагирующего нативного приложения.
export default class HomeActivity extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.headerText}>
Remove TextInput Component Bottom Underline in React Native
</Text>
<TextInput
style={{ height: 40, width: "95%", borderColor: 'gray', borderWidth: 1, marginBottom: 20 }}
// Adding hint in TextInput using Placeholder option.
placeholder="Enter Your First Name"
// Making the Under line Transparent.
underlineColorAndroid="transparent"
/>
<TextInput
style={{ height: 40, width: "95%", borderColor: 'red', borderWidth: 1, marginBottom: 20 }}
// Adding hint in TextInput using Placeholder option.
placeholder="Enter Your First Name"
// Making the Under line Transparent.
underlineColorAndroid="transparent"
/>
<TextInput
style={{ height: 40, width: "95%", borderColor: 'blue', borderWidth: 1, marginBottom: 20 }}
// Adding hint in TextInput using Placeholder option.
placeholder="Enter Your First Name"
// Making the Under line Transparent.
underlineColorAndroid="transparent"
/>
</View>
);
}
}