mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-24 17:18:09 +00:00
Fix flow in Navigation Playground (#735)
This commit is contained in:
parent
a268d67b53
commit
0f19a0bddf
@ -68,7 +68,7 @@ const ExampleRoutes = {
|
|||||||
const MainScreen = ({ navigation }) => (
|
const MainScreen = ({ navigation }) => (
|
||||||
<ScrollView>
|
<ScrollView>
|
||||||
<Banner />
|
<Banner />
|
||||||
{Object.keys(ExampleRoutes).map((routeName: String) =>
|
{Object.keys(ExampleRoutes).map((routeName: string) =>
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
key={routeName}
|
key={routeName}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
|
@ -10,7 +10,13 @@ import {
|
|||||||
/**
|
/**
|
||||||
* Used across examples as a screen placeholder.
|
* 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>
|
<Text style={styles.sampleText}>{children}</Text>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user