Skip to content

[iOS] Scrolling through items swipes parent modal up and down #473

Open
@FelixBaum

Description

@FelixBaum

Describe the bug

I have several pickers in a modal component and everytime I open the picker on iOS and scroll through the list of items, the modal component will reflect the swipe gesture.

To Reproduce

Steps to reproduce the behavior:

  1. Put a picker onto a modal component
  2. Open the picker and scroll through the items

Expected behavior

The modal component should not reflect the swipe gesture.

Screenshots

Here is a video of the issue:
https://user-images.githubusercontent.com/12943469/148595036-73535324-fd7d-4671-ba6c-cd831f55a84a.mov

Additional details

  • Device: iPhone 11
  • OS: 15.0.2
  • react-native-picker-select version: 8.0.4
  • react-native version: 0.65.1

Reproduction and/or code sample

import Modal from 'react-native-modal';

<Modal swipeDirection={['up', 'left', 'right', 'down']} isVisible={true} animationIn="slideInUp" animationOut="slideOutDown">
<View>
<RNPickerSelect value={selectedItem?.value} items={items} onValueChange={onValueChanged}/>
</View>
</Modal>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions