i have maybe stupid question. I m trying to save XML file which i load through xml2js with readfile function. I want to store file content string to global variable but i dont know how to get from promise then a value.
var myval;
var simpleStore = function(value){
myval = value;
}
var myvariable = RNFS.readFile(APPLICATION_HISTORY_DIRECTORY, 'utf8').then(simpleStore);