This JsCore does not support the same function as v8 on the web. So there is no easy way to convert a file to base 64 in both directions.
Google around and you might get somewhere. But it always requires an additional module.... https://stackoverflow.com/questions/34908009/react-native-convert-image-url-to-base64-string
So if you got one working let us know! I would love to see a simpler solution.
Vignesh S, did you figure it out? I have the same problem. :\
const fileUrl = mx.data.getDocumentUrl(file.getGuid(), file.get("changedDate")); let base64 = await NativeModules.NativeFsModule.readAsDataURL(fileUrl);
Worked for me if you have your document as MxObejct.