Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(rn): 修复previewImage 预览图片API的current必须是urls其中的一个 #11632

Open
wants to merge 8 commits into
base: 3.x
Choose a base branch
from
6 changes: 3 additions & 3 deletions packages/taro-rn/src/lib/previewImage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export function previewImage(obj: Taro.previewImage.Option): void {
complete
}: any = obj || {}
const index = urls.indexOf(current)
if (index === -1) {
throw new Error('"current" or "urls" is invalid')
}
// if (index === -1) {
// throw new Error('"current" or "urls" is invalid')
// }

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修改后把 commit 合并成一个就行了

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个我们 squash and merge 就会是一个commit

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

哦哦 我以为要先合并呢😂

let sibling
function backhandler() {
Expand Down