React Native Maps doesn't work

I can’t initialize the MapView component.
What steps will I take for this?

  1. i get the api google key and put it in app.json
  2. install react native maps
  3. import { MapView } from 'expo';
    i see in expo :
    get MapView() { return require('react-native-maps'); },
  4. Create instance component MapView
    <MapView initialRegion={{ latitude: 37.78825, longitude: -122.4324, latitudeDelta: 0.0922, longitudeDelta: 0.0421, }} />
  5. exp build:android
    and get an error :
    invariant violation element type is invalid expected a string for built in components react native

What a step I missed and what I did wrong ?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.