Skip to content

Commit 2c47aa1

Browse files
committed
fix: add dataSet prop to expo button example
1 parent 24a3b17 commit 2c47aa1

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)