Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

Fix flow for children prop #301

Closed
wants to merge 1 commit into from

Conversation

janicduplessis
Copy link
Contributor

@janicduplessis janicduplessis commented Dec 11, 2016

Flow doesn't understand jsx + children (facebook/flow#1964) so this makes the prop optional and adds an invariant to make sure it was actually passed.

@janicduplessis janicduplessis changed the title Fix flow for children prop, allow returning null from childFn Fix flow for children prop Dec 11, 2016
@brentvatne brentvatne closed this Dec 11, 2016
expbot pushed a commit that referenced this pull request Dec 11, 2016
Flow doesn't understand jsx + children
(facebook/flow#1964) so this makes the prop optional
and adds an invariant to make sure it was actually passed.

Closes #301

fbshipit-source-id: 76ea6d7
mbifulco pushed a commit to workfrom/ex-navigation that referenced this pull request Sep 7, 2017
Flow doesn't understand jsx + children
(facebook/flow#1964) so this makes the prop optional
and adds an invariant to make sure it was actually passed.

Closes expo#301

fbshipit-source-id: 76ea6d7
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant