Closed Ali-Aref closed 5 months ago
This is my Pressable with the Stylesheet api
<Pressable style={({ pressed }) => [{ opacity: pressed ? 0.5 : 1.0 } ]}> <Text>SOme teXt</Text> </Pressable>
how to style that using twrnc ? I want to change the background and border colors when the button is pressed.
this should work:
<Pressable style={({ pressed }) => [tw.style(pressed ? `bg-black` : `bg-white`)]} > <Text>Press me</Text> </Pressable>
This is my Pressable with the Stylesheet api
how to style that using twrnc ? I want to change the background and border colors when the button is pressed.