We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mapbox
11.0.0
0.74.1
iOS
@rnmapbox/maps
10.1.24
import React, { useEffect } from 'react'; import { View } from 'react-native'; import MapboxGL from '@rnmapbox/maps'; import Animated, { useAnimatedProps, useSharedValue, withTiming, } from 'react-native-reanimated'; const AnimatedMarkerView = Animated.createAnimatedComponent(MapboxGL.MarkerView); const BugReportExample = () => { const coordinate = useSharedValue([0, 0]); const animatedProps = useAnimatedProps( () => ({ coordinate: coordinate.value, }), [coordinate], ); useEffect(() => { setInterval(() => { coordinate.value = withTiming( coordinate.value[0] > 0 ? [0, 0] : [10, 10], { duration: 1000, }, ); }, 3000); }, [coordinate]); return ( <MapboxGL.MapView styleURL='mapbox://styles/mapbox/streets-v12' style={{ flex: 1 }} > <MapboxGL.Camera centerCoordinate={[0, 0]} /> <AnimatedMarkerView id='me' anchor={{ x: 0.5, y: 0.5 }} allowOverlap={true} allowOverlapWithPuck={false} isSelected={false} animatedProps={animatedProps} > <View style={{ width: 20, height: 20, borderRadius: 10, backgroundColor: 'red', }} /> </AnimatedMarkerView> </MapboxGL.MapView> ); };
Marker is not moving
Marker should smoothly moves
#3294
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Mapbox Implementation
Mapbox
Mapbox Version
11.0.0
React Native Version
0.74.1
Platform
iOS
@rnmapbox/maps
version10.1.24
Standalone component to reproduce
Observed behavior and steps to reproduce
Marker is not moving
Expected behavior
Marker should smoothly moves
Notes / preliminary analysis
#3294
Additional links and references
No response
The text was updated successfully, but these errors were encountered: