react-native-flags icon indicating copy to clipboard operation
react-native-flags copied to clipboard

Increase bundle size substantially

Open watadarkstar opened this issue 4 years ago • 1 comments

This library increases the bundle size substantially. There might be ways to optimize this such as using PNG compression:

https://tinypng.com/ https://www.npmjs.com/package/imageoptim-cli https://imageoptim.com/mac

Screen Shot 2021-01-13 at 1 05 47 PM

watadarkstar avatar Jan 13 '21 18:01 watadarkstar

Also, since Metro bundler cannot shake out which flags you are/aren't using, this import here: https://github.com/frostney/react-native-flags/blob/master/index.js#L5 will import all flags even if you're using just one flag.

jonsamp avatar Apr 12 '22 16:04 jonsamp