Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

React Native - Trigger Media Scanner

/**
* Trigger Media Scanner in Android device
* for a specific file to reflect it in device's file system
* after create, move, delete operation
*/

const RNFS = require("react-native-fs");
RNFS.scanFile(filePath);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #React #Native #Trigger #Media #Scanner
ADD COMMENT
Topic
Name
3+4 =