react-native-firebase size in application bundle is much bigger than required. To reproduce, I used this technique (in the folder of project that contains and uses only import { analytics, messaging, notifications } from 'react-native-firebase'):
npm install -g source-map-explorer
react-native bundle --entry-file index.js --platform ios --dev false --reset-cache --bundle-output main2.jsbundle --sourcemap-output main2.jsbundle.map
source-map-explorer main2.jsbundle main2.jsbundle.map
The process produces this picture (only react-native-firebase part):

158Kb is a very big overhead for whole bundle size... my estimate is about 50Kb
To compare:
So can we structure code in a way that will allow to include only useful code in the bundle?
I see two main issues currently:
React Native version: 0.57.2React Native Firebase Version: 5.0.0Firebase Module: analytics, messaging, notifications (but any other combinations should be optimized)typescript? yes (but not relevant)@vovkasm v6.0.0 (early WIP) is a full restructure / re-write to split into a mono-repo setup with multiple packages, which will solve this. Not much for now that we can do though, but it is something that is coming, soon 鈩笍.
I'd add that v6 is not as drastic as it sounds though, for the end user. It's mainly splitting everything up for easier installs (fewer steps & more automation), removing technical debt and stability & internals re-writes of certain modules.
Ping me on discord if you'd like to discuss it / give any feedback.
Loving react-native-firebase and the support we provide? Please consider supporting us with any of the below:
React Native Firebase and Invertase on Twitter 
Most helpful comment
@vovkasm v6.0.0 (early WIP) is a full restructure / re-write to split into a mono-repo setup with multiple packages, which will solve this. Not much for now that we can do though, but it is something that is coming, soon 鈩笍.
I'd add that v6 is not as drastic as it sounds though, for the end user. It's mainly splitting everything up for easier installs (fewer steps & more automation), removing technical debt and stability & internals re-writes of certain modules.
Ping me on discord if you'd like to discuss it / give any feedback.
Loving
react-native-firebaseand the support we provide? Please consider supporting us with any of the below:React Native FirebaseandInvertaseon Twitter