Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var {
MCFileWriterUtil
} = require('NativeModules');
// Step #1
MCFileWriterUtil.writeFile(
'MyFile.txt', // File name
'Some Text', // File contents
function errorCallback(results) {
alert('Error: ' + results);
},
function successCallback(results) {
alert('Success : ' + results);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.