CleverProgrammers/LIVE-uber-eats-clone-youtube

MenuItems scrollview bug

Opened this issue · 3 comments

Chi20 commented

when i run this project in my android emulator,view can't be scrolled and show other items.the viewcart button also not appear.
I wonder this may be caused by react-native version or food images component?
As i comment the food image,at least viewcart button will appear,but still can not scroll up and down.(see figure)
1

I had the scrolling problem in my iOS device too. What helped me to get over it was to add this style to the ScrollView. I know its not the right way to do it. But I just want to go ahead with the project. This helped me to solve the problems with the ScrollView and ViewCart button.
<ScrollView showsVerticalScrollIndicator={false} style={{
flex: 1,
paddingBottom: 500,
}}
>

when i run this project in my android emulator,view can't be scrolled and show other items.the viewcart button also not appear. I wonder this may be caused by react-native version or food images component? As i comment the food image,at least viewcart button will appear,but still can not scroll up and down.(see figure) 1

This reply might be a bit late but in any case, I also faced the exact same problem and it turns out that the reason I couldn't scroll the screen was because the outer View of menu items was obstructing the Menu Items Scroll-View, so I had to adjust it's height and width.