syanbo / react-native-syan-image-picker

React-Native 多图片选择 支持裁剪 压缩
MIT License
629 stars 155 forks source link

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

Open sclzl opened 2 years ago

sclzl commented 2 years ago

🐛 Bug Report

To Reproduce

Environment

lanjinglingxx commented 2 years ago

Me too

lwrr commented 1 year ago

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

hide = (index) => {
this._hideSheet(() => {
this.setState({visible: false}, () => {
let timerTemp = setTimeout(()=>{
clearTimeout(timerTemp)
this.props.onPress(index)
},300)
})
})
}
QMY-ZQ commented 1 year ago

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

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

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