The React Native script bundler, Metro , first converts your code using Babel . In production build mode, it then runs your code through UglifyJS .
The default configuration does not make any advanced optimizations, such as tremors or deduplication of trees.
If you want to apply more advanced optimizations, you can try to find out if they can be achieved at the stage of transpilation using the Babel plugins. If not, it might be easier to use Haul , an alternative webpack based React Native bundler.
However, as always, before optimizing prematurely, think about what indicators you are trying to improve and measure whether your optimizations really achieve your goals.
source share