Code looks like this:
<Pressable>
<Text>Click me</Text>
</Pressable>
When pressable is clicked, background color of text is changing, how to prevent it in react-native from changing?
Code looks like this:
<Pressable>
<Text>Click me</Text>
</Pressable>
When pressable is clicked, background color of text is changing, how to prevent it in react-native from changing?
3
Answers
Actually this one do the trick
suppressHighlighting
applied to theText
componentBackground color doesn’t change by default when pressable is clicked. But if you are facing this issue just give background color to Pressable none
Try this: