Remove deprecated functions by cknitt · Pull Request #824 · rescript-react-native/rescript-react-native

Expand Up @@ -32,17 +32,6 @@ module ValueAnimations = (Val: Value) => { iterations?: int, }
@deprecated("Directly create record instead") @obj external config: ( ~velocity: Val.rawValue, ~deceleration: float=?, ~isInteraction: bool=?, ~useNativeDriver: bool, ~onComplete: Animation.endCallback=?, ~iterations: int=?, unit, ) => config = ""
@module("react-native") @scope("Animated") external decay: (Val.t, config) => Animation.t = "decay" } Expand Down Expand Up @@ -72,28 +61,6 @@ module ValueAnimations = (Val: Value) => { iterations?: int, }
@deprecated("Directly create record instead") @obj external config: ( ~toValue: toValue, ~restDisplacementThreshold: float=?, ~overshootClamping: bool=?, ~restSpeedThreshold: float=?, ~velocity: Val.rawValue=?, ~bounciness: float=?, ~speed: float=?, ~tension: float=?, ~friction: float=?, ~stiffness: float=?, ~mass: float=?, ~damping: float=?, ~delay: float=?, ~isInteraction: bool=?, ~useNativeDriver: bool, ~onComplete: Animation.endCallback=?, ~iterations: int=?, unit, ) => config = ""
@module("react-native") @scope("Animated") external spring: (Val.t, config) => Animation.t = "spring" } Expand All @@ -115,19 +82,6 @@ module ValueAnimations = (Val: Value) => { iterations?: int, }
@deprecated("Directly create record instead") @obj external config: ( ~toValue: toValue, ~easing: Easing.t=?, ~duration: float=?, ~delay: float=?, ~isInteraction: bool=?, ~useNativeDriver: bool, ~onComplete: Animation.endCallback=?, ~iterations: int=?, unit, ) => config = ""
@module("react-native") @scope("Animated") external timing: (Val.t, config) => Animation.t = "timing" } Expand All @@ -150,16 +104,6 @@ module Interpolation = { extrapolateRight?: extrapolate, }
@deprecated("Directly create record instead") @obj external config: ( ~inputRange: array<float>, ~outputRange: outputRange, ~easing: Easing.t=?, ~extrapolate: extrapolate=?, ~extrapolateLeft: extrapolate=?, ~extrapolateRight: extrapolate=?, unit, ) => config = "" @send external interpolate: (value<'a>, config) => t = "interpolate" }
Expand Down Expand Up @@ -223,11 +167,6 @@ module ValueXY = { type addListenerCallback = rawValue => unit })
@deprecated("Please use xyValue instead") @obj external jsValue: (~x: float, ~y: float) => rawValue = "" @obj external xyValue: (~x: float, ~y: float) => rawValue = ""
type layout = { left: Value.t, top: Value.t, Expand Down