Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flow.js] Typed children #24887

Closed
retyui opened this issue May 16, 2019 · 1 comment
Closed

[Flow.js] Typed children #24887

retyui opened this issue May 16, 2019 · 1 comment
Labels
Flow Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot. Type: Question Issues that are actually questions and not bug reports.

Comments

@retyui
Copy link
Contributor

retyui commented May 16, 2019

How about add custom children type children: React$NativeNode for many react native component:

declare type React$NativeNode =
  | null
  | React$Element<any>
  | Iterable<?React$Node>;

It was really useful for the next case:

<View>'test'</View>; // error
<View>{0 && <View id={0}>}</View> // error 
@retyui retyui added the Type: Question Issues that are actually questions and not bug reports. label May 16, 2019
@react-native-bot
Copy link
Collaborator

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

👉 Click here if you want to report a reproducible bug or regression in React Native.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Resolution: No Template labels May 16, 2019
@facebook facebook locked as resolved and limited conversation to collaborators May 16, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label May 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Flow Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot. Type: Question Issues that are actually questions and not bug reports.
Projects
None yet
Development

No branches or pull requests

2 participants