Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29452

How do I access USB storage on android device in react-native?

$
0
0

I'm creating an application which to be play on my android device. After several weeks searching and continue to develop the application logic, I still unable to find a way to access USB device.

I'm develop using React-Native CLI and device is running on Nougat 7.1.2.

Application will be run on a device as below:- enter image description here

At application startup, it will check the target selected either local folder or removable drive. If user select removable drive, it should be find any existing removable drive and get all files inside it that having images and video to be play (like screen saver/ slideshow) on main screen.

I've come across USB OTG Storage library, but I'm not understand how to access the USB storage content as the console show any difference log between USB Drive and USB Dongle for Mouse. Metro Server Console

If I'm unmounted and mounted both at several times, both device log will trigger same 'USB DISK 2.0'enter image description here

Is there any other library/packages that able to search for removable drive storage and access it's files?


Viewing all articles
Browse latest Browse all 29452

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>