Skip to content

Commit 637a4d2

Browse files
agrcroblessourcecode911
authored andcommitted
Fix flow in Navigation Playground (react-navigation#735)
1 parent a9f6f36 commit 637a4d2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

examples/NavigationPlayground/js/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const ExampleRoutes = {
6868
const MainScreen = ({ navigation }) => (
6969
<ScrollView>
7070
<Banner />
71-
{Object.keys(ExampleRoutes).map((routeName: String) =>
71+
{Object.keys(ExampleRoutes).map((routeName: string) =>
7272
<TouchableOpacity
7373
key={routeName}
7474
onPress={() => {

examples/NavigationPlayground/js/SampleText.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ import {
1010
/**
1111
* Used across examples as a screen placeholder.
1212
*/
13-
const SampleText = ({ children }) => (
13+
import type { Children } from 'react';
14+
15+
const SampleText = ({
16+
children
17+
}: {
18+
children?: Children
19+
}) => (
1420
<Text style={styles.sampleText}>{children}</Text>
1521
);
1622

0 commit comments

Comments
 (0)