Hey there, I’m building an application that’s meant to be an offline reader for a website powered by markdown. In order to work offline, I want to bundle the markdown with the application, but be able to fetch and store new markdown as new posts are made / old posts are updated. Right now I’m struggling with how to bundle / request / save the markdown using Expo.
I initially tried using Expo.Asset, but require doesn’t seem to like markdown files, and Expo.Asset seems to only work with require.
Next I tried react-native-fetch-blob, but soon found out that doesn’t work without detaching.
Does anyone have any suggestion for the workflow of:
- Check if file is stored locally (From initial app or stored network file)
- Request file over network if not
- Store network file, so that case 1 triggers in the future
I’m really hoping there’s an answer here that ISN’T detach from / ditch Expo.