Unexpected token '<' return (<decorateMapComponent_1.ProviderContext.Provider value={this.props.provider}> #5582
Unanswered
cryptobench
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🗺️ What's the correct way to define the Android Google Maps API key with Expo?
There are two conflicting approaches described in the docs:
1. Expo Documentation (MapView)
From the official Expo documentation:
🔗 https://docs.expo.dev/versions/latest/sdk/map-view/#deploy-app-with-google-maps
2. React Native Maps Documentation
From the
[react-native-maps](https://github.com/react-native-maps/react-native-maps/blob/master/docs/installation.md)
installation guide:🧪 What I've tried
✅ Attempt 1: Using Expo-style config
After rebuilding the project, I get the following error:
❌ Attempt 2: Using plugin-style config
Then I run:
❗ Result
❓ Question
What is the correct and currently supported way to define the Android Google Maps API key when using:
react-native-maps
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions