react-native-smart-scroll-view
react-native-smart-scroll-view copied to clipboard
Children are always passed as an array
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>