You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use <LegendList horizontal /> to render multiple vertical <ScrollView /> components, but it looks like the ScrollViews become unresponsive to gestures and cannot be scrolled up-and-down.
Tried on Expo 54 + LegendList v2.
Here's a video showing the issue (I've run a production build, NOT Expo Go):
legend-list-demo.mov
Sample code:
import{Dimensions,ScrollView,Text,View}from'react-native'import{LegendList}from'@legendapp/list'constwidth=Dimensions.get('window').widthconstVerticalList=({ even }: {even: boolean})=>(<ScrollViewcontentContainerStyle={{
width,backgroundColor: even ? 'white' : 'lightgray',}}>{newArray(100).fill(0).map((_,index)=>(<Textkey={String(index)}>{index}</Text>))}</ScrollView>)exportdefaultfunctionApp(){return(<Viewstyle={{flex: 1}}><LegendListhorizontalnestedScrollEnableddata={[0,1,2,3]}renderItem={({item})=><VerticalListeven={item%2===0}/>}getFixedItemSize={()=>width}/></View>)}
I was trying to use
<LegendList horizontal />to render multiple vertical<ScrollView />components, but it looks like the ScrollViews become unresponsive to gestures and cannot be scrolled up-and-down.Tried on Expo 54 + LegendList v2.
Here's a video showing the issue (I've run a production build, NOT Expo Go):
legend-list-demo.mov
Sample code:
Sample Expo Snack: https://snack.expo.dev/@arabiyya/legendlist
Potentially related issues: