Skip to content

Commit efac5f2

Browse files
authored
Merge pull request #8 from finkef/fix/example-use-tailwind-usage
Add `dataSet` prop to Expo Button example
2 parents 24a3b17 + 2c47aa1 commit efac5f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/expo/src/Button.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ export const Button: FunctionComponent<ButtonProps> = ({ label, onPress }) => {
2727
onPressOut={() => setPressed(false)}
2828
onPress={onPress}
2929
>
30-
<View style={styles.button}>
31-
<Text style={styles.text}>{label}</Text>
30+
<View style={styles.button} dataSet={{ tw: styles.button.id }}>
31+
<Text style={styles.text} dataSet={{ tw: styles.text.id }}>
32+
{label}
33+
</Text>
3234
</View>
3335
</TouchableWithoutFeedback>
3436
)

0 commit comments

Comments
 (0)