Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrate Huawei Mobile Services in React Native app based on Expo

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?

like image 322
kaskeeeee Avatar asked Nov 21 '25 19:11

kaskeeeee


1 Answers

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.

like image 147
zhangxaochen Avatar answered Nov 23 '25 08:11

zhangxaochen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!