You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem importing html or SVG assets. And I think the problem occurs with any files that are not JS, TS or JSON ones.
For example :
import htmlContent from '../Assets/test.html'
import svgContent from '../Assets/test.svg'
The htmlContent and svgContent variables contains the value 1 and not the content of HTML or SVG file. I had not this problem using ES6, so I think it comes from Typescript but I can't find any solution.
I am using React Native 0.55.4. Tried with a 0.57.2 project and I have the same problem.
Hi,
I have a problem importing html or SVG assets. And I think the problem occurs with any files that are not JS, TS or JSON ones.
For example :
The
htmlContent
andsvgContent
variables contains the value1
and not the content of HTML or SVG file. I had not this problem using ES6, so I think it comes from Typescript but I can't find any solution.I am using React Native 0.55.4. Tried with a 0.57.2 project and I have the same problem.
My
rn-cli.config.js
file :Thanks for any help.
The text was updated successfully, but these errors were encountered: