Closed idylmz closed 2 months ago
There is an action sheet which I display just a bunch of text (privacy policy etc..) in a scrollview. In that page I still have the same problem and fixed it by giving a marginBottom: 40px
to the scrollview of actions-sheet library. But in this case, that is not working. Not even for 150 px.
It turns out, the reason is, I have some other components outside of scrollview is the reason why I couldn't get the height right.
When I put everything outside of scrollview in StickyHeaderComponent, then the problem solved. I don't know if it's really a bug. I don't see any documentation dictates me not to put anything outside of scrollview scope.
I am using scrollview in my action sheet. I am loading user's camera roll and as they press a button they are loading more photos at the end of their screen. When this roll becomes covering the whole screen, the safe area paddings are not applied it seems. I think I am doing everything according to the documentation.
In this demonstration, I have loaded several lines to my screen. As you can see scrollview works, but there is an overflow on the screen which scrollview cannot seems to handle.
The overflow area is actually larger than it seems. I have tested that I have 2 more lines under it. So the lost area is really huge.
actionsheet_scroll.webm
My package.json
My implementation of ActionSheet
My implementation of the scrollview in the page
ScrollView is imported from this library. I have tried React Native scrollview, safearea scrollview etc.. but nothing changes.
import { useSheetRouter, ScrollView } from 'react-native-actions-sheet';