ptomasroos / react-native-tab-navigator

A tab bar that switches between scenes, written in JS for cross-platform support
MIT License
2.4k stars 416 forks source link

why this error? #41

Closed yuanguozheng closed 8 years ago

yuanguozheng commented 8 years ago

image onlyChild must be passed a children with exactly one child.

yuanguozheng commented 8 years ago

when i set TabNavigator.Item's selected to true

ide commented 8 years ago

You're trying to render 0 or > 1 child in a component that wants one child as the error states. You should debug further.

yuanguozheng commented 8 years ago

Thanks! The problem has been solved! I didn't add any child………… ╮(╯_╰)╭