mmazzarolo / react-native-universal-monorepo

React Native boilerplate supporting multiple platforms: Android, iOS, macOS, Windows, web, browser extensions, Electron.
MIT License
1.7k stars 150 forks source link

How can I separate hms and gms services? #33

Closed orhanoksuzz closed 2 years ago

orhanoksuzz commented 2 years ago

How do you separate Huawei and Google services by platform? Is there an exemplary approach to this?

orhanoksuzz commented 2 years ago

my example approach is dividing index.hms.js or index.gms.js at component level but I am getting error here. I couldn't ignore it at runtime level because the metro bundler caught both files. How can I parse index.gms.js and index.hms.js with metro bundler?