FileSystem.writeAsStringAsync undefined

Hi There,

First off: thank you for your amazing work here! I’ve been able to develop and deploy a mobile app with most of my time spent building the cool stuff for the first time ever!

My one snag until now: I’m not seeing the writeAsStringAsync method when I output the Filesystem object:

Object {
  "deleteAsync": [Function fn],
  "downloadAsync": [Function fn],
  "getInfoAsync": [Function fn],

This happens both on Expo share and in my iOS simulator. Is this intended? Because the closest thing I see in the docs [1] is: "… URIs pointing to local files on the device to identify files. "


Hey Andresn I’ll try my best to help here:

Using this package.json setup:

    "expo": "^19.0.0",
    "react": "16.0.0-alpha.12",
    "react-native": "",

When I console.log(FileSystem) which is import { FileSystem } from ‘expo’; I get:

  "downloadAsync": [Function downloadAsync],
  "getInfoAsync": [Function getInfoAsync],
  "makeDirectoryAsync": [Function makeDirectoryAsync],
  "moveAsync": [Function moveAsync],
  "readAsStringAsync": [Function readAsStringAsync],
  "readDirectoryAsync": [Function readDirectoryAsync],
  "writeAsStringAsync": [Function writeAsStringAsync],

I tested this through XDE and the iOS simulator. What operating system and version of Expo SDK are you using?

Ah, it might be my versions of RN/Expo, I’ll check here shortly, thanks!:

"expo": "^18.0.3",
"react": "16.0.0-alpha.12",
"react-native": "^0.45.1"
1 Like

Let me know how it goes :slight_smile: