Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Load a markdown file in Expo 40+ using typescript

$
0
0

In Expo 40, I need to load markdown files from my local bundle. I'm also using typescript.

I found this post describing a solution, but the assetsExt App.json key doesn't seem to work anymore.

I've tried following the typescript tips to add a declaration and add it to my tsconfig, and that lets typescript find it but my when I load my react-native app, it still does not resolve the app:

Unable to resolve module ./../../../assets/SOME_MARDOWN.md from /app/xxxx/SOME_COMPONENT.tsx:None of these files exist:...

Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>