Hey there.
I want to use a WebView with custom injected JS to render charts in my “undetached” Expo app.
To do this, I thought I’d write my custom JS in a file that I would just place in the “assets” folder, and load at runtime through the Expo.Asset.fromModule()
method mentioned in the doc.
However, I realised that Expo will try to transform that JS, instead of simply loading it as a string. I also tried, very naively, to change the extension to “txt” hoping it would bypass the transform but it doesn’t, instead it will not resolve the module at all.
So my question here is : can I bundle a vanilla JS file within my app to inject it, untouched, into RN’s WebView ?
Sorry if the information is easily available, I wasn’t able to find it.
Thanks