based on the requirement, I need to design a ScrollView(vertical) inside FlatList(vertical)
here is my layout
<FlatList>
renderHeader = <ScrollView/>
renderData= ...
</FlatList>
My code run normally, but the scrollView can not scroll, can someone help
2
Answers
Here is your solution, fixing size of each
renderItem
component, And wrapping this component inScrollView
will fix your problem.This is a problem only in android.
add nativeScrollEnabled prop to ScrollView.