I cannot find out where to change the color of the placeholder text in reactnavigations native-stack searchbar.
Modifying everything else is well described here:
Do you have any idea?
I'm using:
navigation.setOptions({
headerSearchBarOptions: {
placeholder: "placeholder",
placement: "stacked",
autofocus: true,
hideWhenScrolling: false,
onChangeText: (event) => setNeedle(event.nativeEvent.text),
tintColor: "white",
textColor: "white",
obscureBackground:false
},
} as NativeStackNavigationOptions)
For android hintTextColor: "white" is working fine. Missing this option for iOS though.
Try with below one