We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9f6f36 commit 637a4d2Copy full SHA for 637a4d2
examples/NavigationPlayground/js/App.js
@@ -68,7 +68,7 @@ const ExampleRoutes = {
68
const MainScreen = ({ navigation }) => (
69
<ScrollView>
70
<Banner />
71
- {Object.keys(ExampleRoutes).map((routeName: String) =>
+ {Object.keys(ExampleRoutes).map((routeName: string) =>
72
<TouchableOpacity
73
key={routeName}
74
onPress={() => {
examples/NavigationPlayground/js/SampleText.js
@@ -10,7 +10,13 @@ import {
10
/**
11
* Used across examples as a screen placeholder.
12
*/
13
-const SampleText = ({ children }) => (
+ import type { Children } from 'react';
14
+
15
+const SampleText = ({
16
+ children
17
+}: {
18
+ children?: Children
19
+}) => (
20
<Text style={styles.sampleText}>{children}</Text>
21
);
22
0 commit comments