如何在反应本机中搜索 iPhone 文件系统下载文件夹中的 mp3 文件 [英] How to search through iPhone filesystem downloads folder for mp3 files in react native

查看:51
本文介绍了如何在反应本机中搜索 iPhone 文件系统下载文件夹中的 mp3 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 react native ios 应用程序,我想在 iPhone 的下载文件夹中查看我可以播放的 .mp3 文件.我找到了一个库 react-native-fs 但现在我只能查看添加到我的应用程序中的文件,但我不知道如何搜索 iPhone 上已有的 .mp3 文件.任何关于库使用或代码的建议将不胜感激.

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.

我的项目代码:https://github.com/Laybium/laybium

推荐答案

在 iOS 中,应用程序只能访问它们的沙箱.没有下载文件夹这样的东西,因为没有所有应用程序都可以共享的文件夹.

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.

这篇关于如何在反应本机中搜索 iPhone 文件系统下载文件夹中的 mp3 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆