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.
Hi. Did you manage to get this working? I’m new to Expo (and RN in general) and came across your post. I’m looking for a way to manage blog posts in my Expo app. Ideally, I’d have them as Markdown in the app and would push new ones every x days. Is it possible to have these stored in the app (in .md files) and have a screen read them all and present them while also allowing me to add more .md files remotely via publishing (as opposed to going through the App Store)?