I can’t initialize the MapView component.
What steps will I take for this?
- i get the api google key and put it in app.json
- install react native maps
-
import { MapView } from 'expo';
i see in expo :
get MapView() { return require('react-native-maps'); },
- Create instance component MapView
<MapView initialRegion={{ latitude: 37.78825, longitude: -122.4324, latitudeDelta: 0.0922, longitudeDelta: 0.0421, }} />
- 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 ?