openwallet-foundation / bifold-wallet

Aries Mobile Agent React Native - Part of the Aries Bifold effort to provide SSI capabilities in a production ready app.
Apache License 2.0
136 stars 133 forks source link

Development PNG Images on Android #373

Open JamesKEbert opened 1 year ago

JamesKEbert commented 1 year ago

While developing, we've run into an issue of PNGs not displaying while running Android in development (in particular in the ./core package). SVGs appear to still work as expected.

I experimented a lot with the metro bundler and react native config to no avail as of yet. Any insight here @cvarjao?

cvarjao commented 1 year ago

@JamesKEbert , got an example on how PNG is being used?

JamesKEbert commented 1 year ago

If on the ./core/App/screens/PinEnter.tsx screen you change the source:

<Image
   source={require('../assets/img/logo-large.png')}

And you can change the png to any png in the ./core/App/assets/ directory you want, it won't show up during development.

(or were you looking for a branch?)