I'm getting 'undefined is not an object (near '…}).fs.writeFile(' when trying to download base64 image png in react native React Native
Here is my code: const saveImg = async (base64Img: string, success: Function, fail:Function) => { const isAndroid = Platform.OS === "android" const isIos = Platform.OS === 'ios' const dirs = isIos? RNFS.LibraryDirectoryPath : RNFS.ExternalDirectoryPath; const certificateTitle = 'certificate-'+((Math.random() * 10000000)…