mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-28 12:25:21 +08:00
Fix flow in Navigation Playground (#735)
This commit is contained in:
committed by
Eric Vicenti
parent
a268d67b53
commit
0f19a0bddf
@@ -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>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user