How to search through iPhone filesystem downloads folder for mp3 files in react native

帅比萌擦擦* 提交于 2019-12-12 03:47:23

问题


I'm working on an react native ios app where I want to look through the iPhone's downloads folder for .mp3 files that I can play. I've found a library react-native-fs but right now I am only able to see files added to my app and I can't figure out how to search for .mp3 files already on the iPhone. Any advice on libraries to use or code would be appreciated.

Code for my project: https://github.com/Laybium/laybium


回答1:


In iOS apps have access only to their sandboxes. There's no such a thing as a Downloads folder, because there's no folder all apps may share.



来源:https://stackoverflow.com/questions/40259710/how-to-search-through-iphone-filesystem-downloads-folder-for-mp3-files-in-react

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!