Extra Scroll space when page's are of different size
Current behaviour
i am using react-native-tab-view to display seven day activity's each day having a unique activity. in renderScene to render all the data i am using SectionList and when there is no data available i am using ListEmptycomponent the problem is that if any of the day having like 10 activity and other day having no activity still that section is scrollable
Expected behaviour
if there is no data for a particular renderScene that particular renderScene should not be scrollable
Code sample
https://pastebin.com/K9FASbzM // 1st Component https://pastebin.com/z4KF02cZ //2nd Component using SectionList
What have you tried
using ternary expression and passing value from state when the api gives 201 empty array
Your Environment
| software | version |
|---|---|
| ios or android | both |
| react-native-cli | 2.0.1 |
| react-native | 0.57.1 |
| react-native-tab-view | 2.2.0 |
| react-native-gesture-handler | 1.1.0 |
| react-native-reanimated | 1.0.0-alpha.12 |
| node | 10 |
| npm or yarn | [email protected] |
This doesn't look like a bug in the library. We make no assumptions about your screens and don't wrap anything in scrollviews.
If you believe this is a bug in the library, please open a new issue with runnable code (not pastebin links) and a gif/video of what you are experiencing.
thanks a lot removing the scrollview has solved the problem
regards
On Wed, May 8, 2019 at 4:14 PM Satyajit Sahoo [email protected] wrote:
Closed #766 https://github.com/react-native-community/react-native-tab-view/issues/766 .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/react-native-community/react-native-tab-view/issues/766#event-2326864855, or mute the thread https://github.com/notifications/unsubscribe-auth/AJMZOB4LMVLMS56YRKRJC2DPUKVIJANCNFSM4HLQKLPQ .