react-native-smart-scroll-view icon indicating copy to clipboard operation
react-native-smart-scroll-view copied to clipboard

Children are always passed as an array

Open RobinClowers opened this issue 8 years ago • 0 comments

If you nest a TouchableWithoutFeedback inside a SmartScrollView, it will throw an invariant error: React.Children.only expected to receive a single React element child. It appears that it expects a single React element to be passed as children, but SmartScrollView is passing it an array.

This jsx snippet should reproduce the issue:

<SmartScrollView>
  <TouchableWithoutFeedback>
    <Text>test</Text>
  </TouchableWithoutFeedback>
</SmartScrollView>

RobinClowers avatar Nov 11 '16 20:11 RobinClowers