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 create-react-app project and trying to import an image according to the docs. But <Image>'s source format is different between iOS, Android, and web.
But then of course, it breaks on iOS. Some folks suggest customizing the webpack config, but the create-react-app says you can't do that. So how do you get <Image> to work cross-platform with create-react-app?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a
create-react-app
project and trying to import an image according to the docs. But<Image>
'ssource
format is different between iOS, Android, and web.For example, this is working for me in iOS:
But web only works if I reformat the imageBackground import like so:
But then of course, it breaks on iOS. Some folks suggest customizing the webpack config, but the
create-react-app
says you can't do that. So how do you get<Image>
to work cross-platform withcreate-react-app
?Beta Was this translation helpful? Give feedback.
All reactions