react-native-documents / document-picker

Document Picker for React Native

Home Page:https://react-native-documents.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to make the selector only support. srt files?

huangtian615 opened this issue · comments

commented

I have two questions to ask. Please reply if you can
1.How to make the picker only support . srt or other suffix files?
2.When I select the file and get the uri, why can't I use react-native-fs to read the file? It threw an error: The file "1. txt" could not be opened ENSCOCOAERRORDOMAIN256 777

👋 @huangtian615, sorry you're having an issue. This issue is being closed because it does not provide all information required by the issue template. As the issue template explains, we require that you provide a runnable example that reproduces your issue and your environment information. This means you need to provide a code snippet that we can copy-paste into an empty project and see the error ourselves, or provide a git repository with the issue.
The reason is that maintainers do not have time to try reproduce bugs themselves. Please try to minimize the superfluous code and focus only on reproducing the bug.
Please create a new issue with this and we'll be happy to review it!