var RNFS = require(‘react-native-fs’); // create a path you want to write to var path = RNFS. DocumentDirectoryPath + ‘/test. txt’; // write the file RNFS. writeFile(path, ‘Lorem ipsum dolor sit amet’, ‘utf8’) .
var RNFS = require(‘react-native-fs’); // create a path you want to write to var path = RNFS. DocumentDirectoryPath + ‘/test. txt’; // write the file RNFS. writeFile(path, ‘Lorem ipsum dolor sit amet’, ‘utf8’) .