I have developed an app with React Native
based on Expo SDK
, how can I integrate HMS
in my project to make it work for Huawei
devices?
Shall I introduce conditional branches to either use expo-location
instead of hms location
or viceversa or is there a better way?
Asked
Active
Viewed 711 times
3

kaskeeeee
- 61
- 4
1 Answers
1
Shall I introduce conditional branches to either use expo-location instead of hms location or viceversa or is there a better way?
Condition judgment needs to be used to distinguish different mobile phone environments. You could use other methods or use the HMS Availability plug-in.
The React Native Plugin provides adaption code used for the HUAWEI Location Kit to be used in the React Native platform. For details about HUAWEI Location Kit, please kindly refer to This Docs.

zhangxaochen
- 32,744
- 15
- 77
- 108