jemise111 / react-native-swipe-list-view

A React Native ListView component with rows that swipe open and closed
https://www.npmjs.com/package/react-native-swipe-list-view
MIT License
2.78k stars 528 forks source link

Is there any way to close the swipe manually ? #605

Closed GokuVijay closed 2 years ago

GokuVijay commented 2 years ago

I want my swipe list to close while clicking a button. I didn't tried many way to close it, but can't find a way. please reply if there's any solution.

AdamLee321 commented 2 years ago

See the following link: https://github.com/jemise111/react-native-swipe-list-view/blob/master/docs/manually-closing-rows.md

GokuVijay commented 2 years ago

Thanks dude ,I finally solved my issue

See the following link: https://github.com/jemise111/react-native-swipe-list-view/blob/master/docs/manually-closing-rows.md

lively-krishnan commented 1 year ago

如果按页面状态去执行关闭,该如何操作 useEffect(() => { if(mode === 2) { // 如何触发关闭 } }, [mode]);