You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you run this code it will throw this error "TypeError: this.props.children.filter is not a function" <Tabs> <Text name="test">Test</Text> </Tabs>
I have been trying to understand where the problem is but hard to find. Most probably it comes from JSX or react. Open this ticket in case anyone is more involved and understand this issue.
One can add a "null as child" to avoid this issue.
The text was updated successfully, but these errors were encountered:
vanng822
added a commit
to vanng822/react-native-tabs
that referenced
this issue
Nov 22, 2016
My use case is that I build the tab dynamically corresponding user's permissions. It could be zero or more. I guess that you could solve it other way but I think this is nice. I fixed for case zero, one or many children. If you guys think this is useful I can create a PR for further review.
If you run this code it will throw this error "TypeError: this.props.children.filter is not a function"
<Tabs> <Text name="test">Test</Text> </Tabs>
I have been trying to understand where the problem is but hard to find. Most probably it comes from JSX or react. Open this ticket in case anyone is more involved and understand this issue.
One can add a "null as child" to avoid this issue.
The text was updated successfully, but these errors were encountered: