Skip to content

Commit 9f9ed32

Browse files
timotewchristopherdro
authored andcommitted
Update for Animated.Region react-native-maps#24 Fix on the AnimatedMarkers Example (react-native-maps#1889)
* Update for react-native-maps#24 Fix Fix for 'Animated.Region undefined constructor' in recent react-native version. Solved by using MapView.AnimatedRegion instead of Animated.Region * Change Animated.Region react-native-maps#24 on AnimatedMarkers Example Fix for 'Animated.Region undefined constructor' in recent react-native version. Solved by using MapView.AnimatedRegion instead of Animated.Region
1 parent b2867e9 commit 9f9ed32

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

example/examples/AnimatedMarkers.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
Text,
66
Dimensions,
77
TouchableOpacity,
8-
Animated,
98
} from 'react-native';
109

1110
import MapView from 'react-native-maps';
@@ -23,7 +22,7 @@ class AnimatedMarkers extends React.Component {
2322
super(props);
2423

2524
this.state = {
26-
coordinate: new Animated.Region({
25+
coordinate: new MapView.AnimatedRegion({
2726
latitude: LATITUDE,
2827
longitude: LONGITUDE,
2928
}),

0 commit comments

Comments
 (0)