📜  React Native - 触发媒体扫描器 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:39.555000             🧑  作者: Mango

代码示例1
/**
* 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);