You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi, yes, you're right that StorageFile vs Storage is different - for the reading, write should return any data is printed, but I think what you want is just Puck.eval which returns the actual value returned by the function call:

    Puck.eval(`require("Storage").read(${JSO­N.stringify("myapp.json")})`,data=>{
      Util.hideModal();
      settings = JSON.parse(data);
    });
    

    But yes, I'm afraid this kind of thing is something it's not really possible to test in the emulator at the moment. Not long to wait for the Bangle now though!

About

Avatar for Gordon @Gordon started