android - Read and write SQLite file from usb storage - Stack Overflow

admin2025-04-17  2

I have a desktop app that uses SQLite database file (in usb storage) and I want to create a mobile interface for it using React Native (for Android).

I can attach the usb drive to my phone and I can see the db file in file explorer apps.

However, I can't find how to access it via code, as I cant find automatically the file path for the extrrnal USB stick.

I tried to use RNFS lib, but I just can't find the external drive path.

How can I read external file with React Native?

转载请注明原文地址:http://anycun.com/QandA/1744831634a88231.html