UNPKG

react-native-asset

Version:

Linking and unlinking of assets in your react-native app, works for fonts and sounds

9 lines (7 loc) 244 B
const fs = require('fs-extra'); const path = require('path'); module.exports = function cleanAssetsAndroid(files = [], _, { path: assetPath }) { files.forEach(asset => ( fs.removeSync(path.join(assetPath, path.basename(asset))) )); };