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

选择文件时只能选择图片文件无法选择 excel、txt 等其他类型文件 #84

Open
738326776zby opened this issue Aug 10, 2022 · 2 comments

Comments

@738326776zby
Copy link

版本 : react-native-file-selector 1.0.2
代码:
RNFileSelector.Show({
closeMenu: true,
filter:
'.*(.txt|.PDF|.doc|.DOC|.DOCX|.docx|.xls|.xlsx|.XLS|.XLSX|.ppt|.PPT|.PPTX|.pptx|.txt|.TXT|.rar|.RAR|.zip|.ZIP|.png|.jpg|.pdf)$',
})
只能选择到 .png、jpg 图片,其他无法选到

@738326776zby
Copy link
Author

期待您的回复哦

@ShaoGongBra
Copy link

请问下解决了吗,我也只会显示图片,其他任何文件都不会显示,而且我从正则中移除图片的时候,图片也不见了,说明正则生效了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants