Skip to content

Commit

Permalink
fix: add dataSet prop to expo button example
Browse files Browse the repository at this point in the history
  • Loading branch information
finkef committed Dec 22, 2021
1 parent 24a3b17 commit 2c47aa1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/expo/src/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ export const Button: FunctionComponent<ButtonProps> = ({ label, onPress }) => {
onPressOut={() => setPressed(false)}
onPress={onPress}
>
<View style={styles.button}>
<Text style={styles.text}>{label}</Text>
<View style={styles.button} dataSet={{ tw: styles.button.id }}>
<Text style={styles.text} dataSet={{ tw: styles.text.id }}>
{label}
</Text>
</View>
</TouchableWithoutFeedback>
)
Expand Down

0 comments on commit 2c47aa1

Please sign in to comment.