to deal with scenarios in which the application is active in foreground, we have to incorporate this code on the firebase.js file:
this post explores how builders leverage React Native for native mobile development, https://cormacmnlk238837.aboutyoublog.com/30883766/about-redux-for-react-native