diff --git a/index.d.ts b/index.d.ts index 029027051..d7f2adcc2 100644 --- a/index.d.ts +++ b/index.d.ts @@ -12,6 +12,7 @@ import { StyleProp, ImageSourcePropType, } from 'react-native'; +import ReactNative from 'react-native'; import { Geometry, @@ -156,6 +157,24 @@ declare namespace MapboxGL { class BackgroundLayer extends Component { } } + /** + * Classes + */ + + class AnimatedPoint { + constructor(point?: GeoJSON.Point); + longitude: ReactNative.Animated.Value; + latitude: ReactNative.Animated.Value; + setValue: (point: GeoJSON.Point) => void; + setOffset: (point: GeoJSON.Point) => void; + flattenOffset: () => void; + stopAnimation: (cb?: () => GeoJSON.Point) => void; + addListener: (cb?: () => GeoJSON.Point) => void; + removeListener: (id: string) => void; + spring: (config: Record) => ReactNative.Animated.CompositeAnimation; + timing: (config: Record) => ReactNative.Animated.CompositeAnimation; + } + /** * Components */