Skip to content

Commit 2036b9a

Browse files
committed
Example is working with the internal lib
1 parent 252e9fa commit 2036b9a

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

β€Žexample/App.tsxβ€Ž

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
import React from "react";
22
import {
3-
SafeAreaView,
3+
View,
4+
StatusBar,
45
StyleSheet,
56
ScrollView,
6-
View,
7-
Text as RNText,
8-
StatusBar
7+
SafeAreaView
98
} from "react-native";
109

1110
import {
1211
Header,
13-
LearnMoreLinks,
1412
Colors,
13+
LearnMoreLinks,
1514
DebugInstructions,
1615
ReloadInstructions
1716
} from "react-native/Libraries/NewAppScreen";
1817

1918
import Text from "./lib/StatefulComponent/Text";
19+
import { Hello } from "./lib/FunctionalComponent/Hello";
2020

2121
declare var global: { HermesInternal: null | {} };
2222

@@ -46,25 +46,31 @@ const App = () => {
4646
</Text>
4747
</View>
4848
<View style={styles.sectionContainer}>
49-
<Text style={styles.sectionTitle}>See Your Changes</Text>
49+
<Text size="XL" bold style={styles.sectionTitle}>
50+
See Your Changes
51+
</Text>
5052
<Text style={styles.sectionDescription}>
5153
<ReloadInstructions />
5254
</Text>
5355
</View>
5456
<View style={styles.sectionContainer}>
55-
<Text style={styles.sectionTitle}>Debug</Text>
57+
<Text size="XL" bold style={styles.sectionTitle}>
58+
Debug
59+
</Text>
5660
<Text style={styles.sectionDescription}>
5761
<DebugInstructions />
5862
</Text>
5963
</View>
6064
<View style={styles.sectionContainer}>
61-
<Text style={styles.sectionTitle}>Learn More</Text>
65+
<Text size="XL" bold style={styles.sectionTitle}>
66+
Learn More
67+
</Text>
6268
<Text style={styles.sectionDescription}>
6369
Read the docs to discover what to do next:
6470
</Text>
6571
</View>
66-
<LearnMoreLinks />
6772
</View>
73+
<Hello name="Test" enthusiasmLevel={5} />
6874
</ScrollView>
6975
</SafeAreaView>
7076
</>
File renamed without changes.

0 commit comments

Comments
Β (0)