Repository navigation
Open
Labels
area:presetsBuilt-in presets and libraries' own mocksenhancementNew feature or requestpriority:mediumReal friction with a workaround
Milestone
Description
Under the mock engine, presets.reanimated() implements a subset of react-native-reanimated (presets guide). The mock conformance probe checks it against the API that the locked version declares and finds the gaps below. Each one has a waiver in tests-native/conformance/reanimated.mock-waivers.json that names this issue. A waiver stops failing when the preset provides that member, and the probe then asks for it to be removed.
Missing exports
- Layout animation builders and transitions (89):
BaseAnimationBuilder,BounceIn,BounceInDown,BounceInLeft,BounceInRight,BounceInUp,BounceOut,BounceOutDown,BounceOutLeft,BounceOutRight,BounceOutUp,ComplexAnimationBuilder,CurvedTransition,EntryExitTransition,FadeIn,FadeInDown,FadeInLeft,FadeInRight,FadeInUp,FadeOut,FadeOutDown,FadeOutLeft,FadeOutRight,FadeOutUp,FadingTransition,FlipInEasyX,FlipInEasyY,FlipInXDown,FlipInXUp,FlipInYLeft,FlipInYRight,FlipOutEasyX,FlipOutEasyY,FlipOutXDown,FlipOutXUp,FlipOutYLeft,FlipOutYRight,JumpingTransition,Keyframe,Layout,LightSpeedInLeft,LightSpeedInRight,LightSpeedOutLeft,LightSpeedOutRight,LinearTransition,PinwheelIn,PinwheelOut,RollInLeft,RollInRight,RollOutLeft,RollOutRight,RotateInDownLeft,RotateInDownRight,RotateInUpLeft,RotateInUpRight,RotateOutDownLeft,RotateOutDownRight,RotateOutUpLeft,RotateOutUpRight,SequencedTransition,SharedTransition,SlideInDown,SlideInLeft,SlideInRight,SlideInUp,SlideOutDown,SlideOutLeft,SlideOutRight,SlideOutUp,StretchInX,StretchInY,StretchOutX,StretchOutY,ZoomIn,ZoomInDown,ZoomInEasyDown,ZoomInEasyUp,ZoomInLeft,ZoomInRight,ZoomInRotate,ZoomInUp,ZoomOut,ZoomOutDown,ZoomOutEasyDown,ZoomOutEasyUp,ZoomOutLeft,ZoomOutRight,ZoomOutRotate,ZoomOutUp - Test helpers (5):
advanceAnimationByFrame,advanceAnimationByTime,getAnimatedStyle,setUpTests,withReanimatedTimer - Other exports (55):
defineAnimation,GentleSpringConfig,GentleSpringConfigWithDuration,Reanimated3DefaultSpringConfig,Reanimated3DefaultSpringConfigWithDuration,SnappySpringConfig,SnappySpringConfigWithDuration,WigglySpringConfig,WigglySpringConfigWithDuration,withClamp,contrastColor,convertToRGBA,isColor,ReanimatedLogLevel,DynamicColorIOS,PlatformColor,processColor,InterfaceOrientation,IOSReferenceFrame,SensorType,LayoutAnimationConfig,PerformanceMonitor,ReducedMotionConfig,SharedTransitionBoundary,configureReanimatedLogger,enableLayoutAnimations,getViewProp,isConfigured,isReanimated3,NativeEventsManager,getDynamicFeatureFlag,getStaticFeatureFlag,setDynamicFeatureFlag,Extrapolate,startMapper,stopMapper,reanimatedVersion,dispatchCommand,getRelativeCoords,setNativeProps,getUseOfValueInStyleWarning,createAnimatedPropAdapter,finishScreenTransition,ScreenTransition,startScreenTransition,createWorkletRuntime,executeOnUIRuntimeSync,isWorkletFunction,makeShareableCloneRecursive,runOnRuntime,createCSSAnimatedComponent,cubicBezier,linear,steps,css
Missing members of exports the preset has
makeMutable:()._value,().setDirtyFlagEasing:.poly,.sin,.circle,.exp,.elastic,.back,.bounce,.bezierFn,.stepsuseAnimatedSensor:().config.interval,().config.adjustToInterfaceOrientation,().config.iosReferenceFrameuseAnimatedStyle:().viewDescriptors,().initial,().styleUpdaterContainer
Return values that differ from the declared type
useAnimatedRef()returns a plain object; the declaredAnimatedRefis a callable function
That is 167 waivers. Under the native engine, the package's own Jest mock is served instead.
Metadata
Metadata
Assignees
Labels
area:presetsBuilt-in presets and libraries' own mocksenhancementNew feature or requestpriority:mediumReal friction with a workaround
Activity
test(conformance): every waiver names an issue or a reason it can nev…