Skip to content

Using PROVIDER_GOOGLE with react-native-maps crashes Simulator #4379

@iM-GeeKy

Description

@iM-GeeKy

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.

Note: I'm not sure if this is expo or react-native-maps specific, so this issues is posted on both repos for visibility.

Reproducible sample code

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

Steps to reproduce

  1. Run expo start.
  2. Press i │ open iOS simulator
  3. Add your Google API key to app.json.
  4. Uncomment provider in app.js.

Expected result

The Simulator does not crash.

Actual result

The Simulator crashes.

React Native Maps Version

0.31.1

What platforms are you seeing the problem on?

iOS (Google Maps)

React Native Version

0.69.3

What version of Expo are you using?

SDK 46

Device(s)

iPhone 13 Pro Simulator iOS 15.5

Additional information

Issue opened with Expo team expo/expo#18530

This happens on amd and apple silicon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions