react-native-modalize icon indicating copy to clipboard operation
react-native-modalize copied to clipboard

Glitchy behaviour on iOS when scrolling to top

Open gbumps opened this issue 2 years ago • 0 comments

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]

gbumps avatar Jan 25 '22 11:01 gbumps