react-native-modalize
react-native-modalize copied to clipboard
Glitchy behaviour on iOS when scrolling to top
Describe the bug
Reopen from #170
This issue still happened on real device but not in simulator
When using with snapPoint
&& closeSnapPointStraightEnabled={false}
caused the issue.
Both iOS and Android platform. Reproduce
```
<Modalize
ref={ref1}
flatListProps={{
data: cities,
keyExtractor: (item, index) => `${item.id + '_' + index}`,
renderItem: ({item}) => (
<Button
padding={SPACING.sm}
onPress={() => {
changeDataCities(item);
changeDataDistrict({});
ref1?.current?.close();
}}>
<Text p semibold transform="uppercase">
{item.name}
</Text>
</Button>
),
}}
closeOnOverlayTap
closeSnapPointStraightEnabled={false}
modalHeight={height - headerHeight - 50}
snapPoint={400}
/>
```
Video https://user-images.githubusercontent.com/16846439/150972020-88d46c85-92ca-485c-a015-7b155b966138.mov
Dependencies:
- react-native-modalize [2.0.13]
- react-native [0.64.3]
- react-native-gesture-handler [1.10.2]
- expo [0.43]
- @react-navigation/native: [5.9.4]
- @react-navigation/stack: [5.14.5]