react-native-community / cli

The React Native Community CLI - command line tools to help you build RN apps
MIT License
2.37k stars 901 forks source link

variant build with auto link work ? as we are maintain for GMS and HMS. #1275

Closed arul-prasad closed 3 years ago

arul-prasad commented 4 years ago

I have a question for auto linking with variant build

I have android app sources as below:

app/src/gms/java/MainApplication.java --> google mobile service main app app/src/hms/java/MainApplication.java --> huawei service main app

if we use some react-native modules for example react-native-image-picker will it do auto-link correctly?

thymikee commented 3 years ago

You'll need to use project.android.appName or --appFolder to tell the CLI where your project is. See this issue: https://github.com/react-native-community/cli/issues/1292 and documentation: https://github.com/react-native-community/cli/blob/master/docs/platforms.md#projectconfig