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

How to disable parent scrolling inside a <Swipeout/> Component ?

Open julestruong opened this issue 6 years ago • 3 comments

julestruong avatar Mar 07 '18 14:03 julestruong

Also looking for this. Documentation says scroll property takes a function...

brunobely avatar Apr 03 '18 22:04 brunobely

Last comment in https://github.com/dancormier/react-native-swipeout/issues/179

<Swipeout>
	scroll={(scrollEnabled) => { this.setState({ scrollEnabled }); }}
	...
</Swipeout>

<FlatList
	scrollEnabled={this.state.scrollEnabled}
	...
</FlatList>

Milesyan avatar Jun 01 '18 04:06 Milesyan

i did it like this:

<Swipeout>
	scroll={() => { this.setState({ scrollEnabled: false }); }}
        onClose={() => { this.setState({ scrollEnabled: true }); }}
	...
</Swipeout>

<FlatList
	scrollEnabled={this.state.scrollEnabled}
	...
</FlatList>

findmory avatar Jun 11 '19 14:06 findmory