Pushing a screen of a React Navigation Stack with a FlatList will break the scrolling support on Web.
Tried several suggested solutions - none of these worked:
- Including a parent View with flex property
style={{flex: 1}}
- Replacing FlatList with a ScrollView
What worked for me was adding a flex property to cardStyle
in screenOptions
of the React Navigation stack navigator:
<Stack.Navigator mode="card" screenOptions={{ cardStyle: { flex: 1 } }}>
<Stack.Screen name="MyScreen" component={MyScreen} />
</Stack.Navigator>