React-native-maps: Is it possible to use with CRNA without ejecting?

Created on 21 Jan 2018  路  3Comments  路  Source: react-native-maps/react-native-maps

Hey there,

I'm just wondering if I'll need to "eject" my create-react-native-app project in order to use the react-native-maps?

It looks like in order to have access to say the build.gradle file I'll need to eject but I was wondering if anyone has used CRNA and this map component without ejecting?

Thanks!

create-react-native-app question

Most helpful comment

@tnrich as @alvelig said, there is no need to eject from CRNA / Expo to use this . All you have to do is import { MapView } from 'expo' instead of import MapView from 'react-native-maps' and you get to skip all of the Podfile/gradle stuff. Expo Docs

All 3 comments

If not using Expo API, then yes, you will have to eject. Using Expo API you will have react-native-maps already bundled in Expo API, but with a minor version of react-native-maps. We will be very grateful to you if you give us your feedback on using our lib with create-react-native-app

@tnrich as @alvelig said, there is no need to eject from CRNA / Expo to use this . All you have to do is import { MapView } from 'expo' instead of import MapView from 'react-native-maps' and you get to skip all of the Podfile/gradle stuff. Expo Docs

Awesome thanks @pcooney10 and @alvelig !! I got it working :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Anandks1993 picture Anandks1993  路  3Comments

iSimar picture iSimar  路  3Comments

thayanithik picture thayanithik  路  3Comments

allthetime picture allthetime  路  3Comments

wnqnguo picture wnqnguo  路  3Comments