Mapview methods not working


#1

Hi everyone,

I`m using EXPO for a project which heavily uses the Mapview component. Since I started the project, in the official component repo, the support for new methods as animateToViewingAngle has been added. (https://github.com/airbnb/react-native-maps/pull/1544).

Nevertheless, the component that is installed within my project in EXPO just doesn’t seem to support this new methods.

Theres a way to work around this issue by updating de component?

Thanks.


#2

We released Expo SDK 22 yesterday which includes the latest version of react-native-maps. Updating to the latest SDK should take care of this for you.

See https://blog.expo.io/expo-sdk-v22-0-0-is-now-available-7745bfe97fc6


MapView Methods - animateToBearing
#3

I updated the Expo SDK as shown in the link you sent, but the methods animateToViewingAngle and animateToBearing aren’t supported yet. I keep receiving an error whenever i use those methods.

I’ve been doing some stackoverflowing and it seems like the methods work when using react-native only.

It’d be useful any info regarding this.

thanks.