aksonov / aksonov/react-native-router-flux

prevent drawer opened when swipe right in horizontal FlatList

Open
#3,713 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8.9k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

### Version
Tell us which versions you are using

- react-native-router-flux v4.2.0
- react v16.9.0
- react-native v0.61.5

### Expected behaviour

drawer not opened when swipe right (slow gesture) in horizontal FlatList.
i want horizontally scroll in my flat list item both in slow gesture or fast gesture

### Actual behaviour
drawer opened when swipe right (slow gesture) in horizontal FlatList

### Steps to reproduce

1. create drawer with child component Home
2. in Home, i put horizontal FlatList
3. when swipe in flat list, drawer opened

### Reproducible Demo

```
export default Actions.create(

logEvent(EVENT_OPEN_SIDEBAR)}
key={SceneKey.HOME}
contentComponent={SidebarAccount}
wrap={false}
edgeWidth={WIDTH}
drawerWidth={WIDTH_SIDEBAR}
drawerBackgroundColor={'transparent'}
>
{generateScene({
navigationBarStyle: NavBarOrangeNoShadow,
key: SceneKey.HOME,
component: Home,
hideNavBar: true,
panHandlers: null
})}


)
```

in Home.js

```


}>

/* in BannerNotification that contain flat list */



```

In BannerNotification.js

```

item.id}
renderItem={singleBannerObject => }
/>

```

# Screenshoot

![image](https://user-images.githubusercontent.com/17137806/95448218-2faf7a00-098d-11eb-9e68-7fc1975de5fb.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.