I have a file name which
Allan Munger.png
How can I import it in Javascript?
I tried this but it says file not found
import AllanMunger from "./images/avatars/Allan Munger.png";
Where my index ts path is
src/assests/images/index.ts
And image path is
src/assests/images/avatars/Allan Munger.png
I have changes path from images/ to ./images/and types for .png file. White Ts doesn't throw error, React-native app does
Fixed paths, still the same error