| 3 | import React from "react"; |
| 4 | |
| 5 | export default function TextsExample() { |
| 6 | const [text, setText] = React.useState("Hello"); |
| 7 | |
| 8 | return ( |
| 9 | <ScrollView style={{ flex: 1 }} contentContainerStyle={{ padding: 20 }}> |
| 10 | <Text style={styles.header}>Texts Example</Text> |
| 11 | <JetpackText |
| 12 | color="blue" |
| 13 | fontWeight="bold" |
| 14 | textDecoration="lineThrough" |
| 15 | fontSize={20} |
| 16 | textAlign="right" |
| 17 | modifier={Modifier.alpha(1).border({ color: "red", width: 1 })} |
| 18 | > |
| 19 | {text} |
| 20 | </JetpackText> |
| 21 | </ScrollView> |
| 22 | ); |
| 23 | } |
| 24 | |
| 25 | const styles = StyleSheet.create({ |
| 26 | header: { |