MCPcopy Create free account
hub / github.com/andrew-levy/jetpack-compose-react-native / TextsExample

Function TextsExample

example/app/texts.tsx:5–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import React from "react";
4
5export 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
25const styles = StyleSheet.create({
26 header: {

Callers

nothing calls this directly

Calls 2

borderMethod · 0.65
alphaMethod · 0.65

Tested by

no test coverage detected