Best practices for using Firebase in Expo App for Web as well as Mobile in SDK 48


We are currently on SDK 47, and have so far been using Javascript SDK for Firebase. That allowed us to use a common code base for Web + Mobile. However SDK 48 may require us to use react-native-firebase (one reason - no FirebaseRecaptcha support in SDK 48). In that scenario, can we use react-native-firebase as well as Javascript SDK in the same app? Any best practices around organizing the code such that maybe the Javascript SDK does not get included in the mobile version and vice versa?
(I am assuming that there’s no way to have react-native-firebase compile for the Web).