I used color property in react native app and it gives above error.
You can reproduce the issue
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
color:'white',
justifyContent: 'center',
},
});

backgroundColor
You have to set the color style directly on a Text component for it to be white. Child components does not inherit style like on the web.
What they said - set the color on the Text element. Be aware you're using a white background color on the View container, you'll probably want to use a different color for the text.
Thanks issue is resolved
Most helpful comment
You have to set the
colorstyle directly on aTextcomponent for it to be white. Child components does not inherit style like on the web.