question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using PROVIDER_GOOGLE with react-native-maps crashes iOS Simulator in latest Expo Go

See original GitHub issue

Summary

Using the provider={PROVIDER_GOOGLE} with a valid Google Maps API key in the MapView component causes the iOS simulator to crash. Running the code on a physical device however, does in fact render the map properly.

Issue opened on react-native-maps as well https://github.com/react-native-maps/react-native-maps/issues/4379

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

iOS

SDK Version (managed workflow only)

46.0.0

Environment

expo-env-info 1.0.5 environment info: System: OS: macOS 12.5 Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.16.0 - /usr/local/bin/node Yarn: 1.22.19 - ~/.yarn/bin/yarn npm: 8.15.0 - /usr/local/bin/npm SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 IDEs: Android Studio: 2021.2 AI-212.5712.43.2112.8609683 Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild npmPackages: expo: ^46.0.0 => 46.0.2 react: 18.0.0 => 18.0.0 react-dom: 18.0.0 => 18.0.0 react-native: 0.69.3 => 0.69.3 react-native-web: ~0.18.7 => 0.18.7 npmGlobalPackages: eas-cli: 0.57.0 expo-cli: 6.0.1 Expo Workflow: managed

Reproducible demo

This was created using npx create-expo-app my-app.

https://github.com/iM-GeeKy/my-app/tree/master

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:5
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
byCedriccommented, Aug 19, 2022

This should be resolved in the latest Expo Go version! (2.25.2)

2reactions
carlashawolcommented, Sep 23, 2022

I’m still facing this issue in the latest version of expo (sdk 46)

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native ejected expo app is crashing in simulator
I had to do expo publish and then when i run react-native run-ios from the folder containing the ios/ things started to work....
Read more >
I'm building an expo project and some screen needs mapView ...
I'm building an expo project and some screen needs mapView, it works perfectly on expo go but when I built it it crashes...
Read more >
React Native Google Map with react-native-maps - codeburst
I am using react-native-maps to render a Google map on my phone. ... and run the command react-native run-ios , which should open...
Read more >
How to Add Maps in React Native Using react-native-maps
Today, we are going to integrate Google Maps in a React Native app step by step, using the popular React Native Maps package....
Read more >
react-native-mapview - Bountysource
I am using react-native-maps and I have a theme context that determines ... on IOS provider={PROVIDER_GOOGLE} when I use with new AnimateRegion when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found