react-native-syan-image-picker icon indicating copy to clipboard operation
react-native-syan-image-picker copied to clipboard

在iOS中先打开一个modal显示照片或者视频选项,然后点击选项后会关闭modal,但是相册也会打开一瞬间后跟着关闭

Open sclzl opened this issue 3 years ago • 3 comments

🐛 Bug Report

To Reproduce

Environment

sclzl avatar Feb 15 '22 02:02 sclzl

Me too

lanjinglingxx avatar Jul 08 '22 01:07 lanjinglingxx

修改lib/ActionSheetCustom.js 里的hide方法。

hide = (index) => {
this._hideSheet(() => {
this.setState({visible: false}, () => {
let timerTemp = setTimeout(()=>{
clearTimeout(timerTemp)
this.props.onPress(index)
},300)
})
})
}

lwrr avatar Oct 27 '22 06:10 lwrr

修改lib/ActionSheetCustom.js里的隐藏方法。

hide = (index) => {
this._hideSheet(() => {
this.setState({visible: false}, () => {
let timerTemp = setTimeout(()=>{
clearTimeout(timerTemp)
this.props.onPress(index)
},300)
})
})
}

这个lib/ActionSheetCustom在哪?我没有找到

QMY-ZQ avatar Nov 22 '22 08:11 QMY-ZQ