Fix flow in Navigation Playground (#735)

This commit is contained in:
Alejandro Garcia 2017-03-22 20:08:08 +01:00 committed by Eric Vicenti
parent a268d67b53
commit 0f19a0bddf
2 changed files with 8 additions and 2 deletions

View File

@ -68,7 +68,7 @@ const ExampleRoutes = {
const MainScreen = ({ navigation }) => (
<ScrollView>
<Banner />
{Object.keys(ExampleRoutes).map((routeName: String) =>
{Object.keys(ExampleRoutes).map((routeName: string) =>
<TouchableOpacity
key={routeName}
onPress={() => {

View File

@ -10,7 +10,13 @@ import {
/**
* Used across examples as a screen placeholder.
*/
const SampleText = ({ children }) => (
import type { Children } from 'react';
const SampleText = ({
children
}: {
children?: Children
}) => (
<Text style={styles.sampleText}>{children}</Text>
);