react-native-reanimated 4.0.3 → 4.1.0-jsx-fix
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Common/cpp/reanimated/AnimatedSensor/AnimatedSensorModule.cpp +3 -3
- package/Common/cpp/reanimated/AnimatedSensor/AnimatedSensorModule.h +1 -1
- package/Common/cpp/reanimated/CSS/common/definitions.h +0 -2
- package/Common/cpp/reanimated/CSS/common/{Quaternion.cpp → transforms/Quaternion.cpp} +1 -1
- package/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix.h +148 -0
- package/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix2D.cpp +259 -0
- package/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix2D.h +59 -0
- package/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix3D.cpp +581 -0
- package/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix3D.h +86 -0
- package/Common/cpp/reanimated/CSS/common/transforms/TransformOp.cpp +49 -0
- package/Common/cpp/reanimated/CSS/common/transforms/TransformOp.h +29 -0
- package/Common/cpp/reanimated/CSS/common/{vectors.cpp → transforms/vectors.cpp} +66 -1
- package/Common/cpp/reanimated/CSS/common/{vectors.h → transforms/vectors.h} +24 -0
- package/Common/cpp/reanimated/CSS/common/values/CSSAngle.cpp +16 -1
- package/Common/cpp/reanimated/CSS/common/values/CSSAngle.h +5 -0
- package/Common/cpp/reanimated/CSS/common/values/CSSColor.cpp +63 -45
- package/Common/cpp/reanimated/CSS/common/values/CSSColor.h +9 -0
- package/Common/cpp/reanimated/CSS/common/values/{CSSDimension.cpp → CSSLength.cpp} +27 -32
- package/Common/cpp/reanimated/CSS/common/values/{CSSDimension.h → CSSLength.h} +11 -13
- package/Common/cpp/reanimated/CSS/common/values/CSSValueVariant.h +2 -2
- package/Common/cpp/reanimated/CSS/{config → configs}/CSSAnimationConfig.cpp +1 -1
- package/Common/cpp/reanimated/CSS/{config → configs}/CSSAnimationConfig.h +2 -2
- package/Common/cpp/reanimated/CSS/{config → configs}/CSSKeyframesConfig.cpp +11 -10
- package/Common/cpp/reanimated/CSS/{config → configs}/CSSKeyframesConfig.h +2 -9
- package/Common/cpp/reanimated/CSS/{config → configs}/CSSTransitionConfig.cpp +1 -1
- package/Common/cpp/reanimated/CSS/{config → configs}/CSSTransitionConfig.h +1 -1
- package/Common/cpp/reanimated/CSS/{config → configs}/common.cpp +1 -1
- package/Common/cpp/reanimated/CSS/configs/interpolators/base/common.h +138 -0
- package/Common/cpp/reanimated/CSS/configs/interpolators/base/image.h +15 -0
- package/Common/cpp/reanimated/CSS/configs/interpolators/base/text.h +51 -0
- package/Common/cpp/reanimated/CSS/configs/interpolators/base/view.h +77 -0
- package/Common/cpp/reanimated/CSS/configs/interpolators/constants.h +13 -0
- package/Common/cpp/reanimated/CSS/configs/interpolators/registry.cpp +39 -0
- package/Common/cpp/reanimated/CSS/configs/interpolators/registry.h +28 -0
- package/Common/cpp/reanimated/CSS/configs/interpolators/utils.h +20 -0
- package/Common/cpp/reanimated/CSS/core/CSSAnimation.cpp +5 -7
- package/Common/cpp/reanimated/CSS/core/CSSAnimation.h +6 -7
- package/Common/cpp/reanimated/CSS/core/CSSTransition.cpp +5 -3
- package/Common/cpp/reanimated/CSS/core/CSSTransition.h +2 -2
- package/Common/cpp/reanimated/CSS/easing/linear.h +1 -1
- package/Common/cpp/reanimated/CSS/easing/steps.h +1 -1
- package/Common/cpp/reanimated/CSS/interpolation/InterpolatorFactory.cpp +2 -2
- package/Common/cpp/reanimated/CSS/interpolation/PropertyInterpolator.h +3 -1
- package/Common/cpp/reanimated/CSS/interpolation/groups/ArrayPropertiesInterpolator.cpp +6 -3
- package/Common/cpp/reanimated/CSS/interpolation/groups/ArrayPropertiesInterpolator.h +2 -2
- package/Common/cpp/reanimated/CSS/interpolation/groups/RecordPropertiesInterpolator.cpp +17 -9
- package/Common/cpp/reanimated/CSS/interpolation/groups/RecordPropertiesInterpolator.h +2 -2
- package/Common/cpp/reanimated/CSS/interpolation/styles/AnimationStyleInterpolator.h +9 -3
- package/Common/cpp/reanimated/CSS/interpolation/styles/TransitionStyleInterpolator.cpp +4 -2
- package/Common/cpp/reanimated/CSS/interpolation/styles/TransitionStyleInterpolator.h +3 -1
- package/Common/cpp/reanimated/CSS/interpolation/transforms/TransformInterpolator.h +2 -3
- package/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperation.cpp +120 -393
- package/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperation.h +29 -155
- package/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperationInterpolator.cpp +4 -4
- package/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperationInterpolator.h +3 -2
- package/Common/cpp/reanimated/CSS/interpolation/transforms/TransformsStyleInterpolator.cpp +32 -10
- package/Common/cpp/reanimated/CSS/interpolation/transforms/TransformsStyleInterpolator.h +7 -4
- package/Common/cpp/reanimated/CSS/interpolation/transforms/operations/matrix.cpp +136 -0
- package/Common/cpp/reanimated/CSS/interpolation/transforms/operations/matrix.h +29 -0
- package/Common/cpp/reanimated/CSS/interpolation/transforms/operations/perspective.h +25 -0
- package/Common/cpp/reanimated/CSS/interpolation/transforms/operations/rotate.h +47 -0
- package/Common/cpp/reanimated/CSS/interpolation/transforms/operations/scale.h +51 -0
- package/Common/cpp/reanimated/CSS/interpolation/transforms/operations/skew.h +29 -0
- package/Common/cpp/reanimated/CSS/interpolation/transforms/operations/translate.h +40 -0
- package/Common/cpp/reanimated/CSS/interpolation/values/ResolvableValueInterpolator.h +1 -1
- package/Common/cpp/reanimated/CSS/interpolation/values/ValueInterpolator.h +5 -5
- package/Common/cpp/reanimated/CSS/misc/ViewStylesRepository.h +1 -1
- package/Common/cpp/reanimated/CSS/progress/AnimationProgressProvider.h +2 -2
- package/Common/cpp/reanimated/CSS/progress/TransitionProgressProvider.h +2 -2
- package/Common/cpp/reanimated/CSS/{registry → registries}/CSSAnimationsRegistry.cpp +1 -1
- package/Common/cpp/reanimated/CSS/{registry → registries}/CSSAnimationsRegistry.h +3 -3
- package/Common/cpp/reanimated/CSS/registries/CSSKeyframesRegistry.cpp +47 -0
- package/Common/cpp/reanimated/CSS/registries/CSSKeyframesRegistry.h +38 -0
- package/Common/cpp/reanimated/CSS/{registry → registries}/CSSTransitionsRegistry.cpp +1 -1
- package/Common/cpp/reanimated/CSS/{registry → registries}/CSSTransitionsRegistry.h +3 -3
- package/Common/cpp/reanimated/CSS/{registry → registries}/StaticPropsRegistry.cpp +1 -1
- package/Common/cpp/reanimated/CSS/svg/configs/init.cpp +15 -0
- package/Common/cpp/reanimated/CSS/svg/configs/init.h +15 -0
- package/Common/cpp/reanimated/CSS/svg/configs/interpolators/circle.h +16 -0
- package/Common/cpp/reanimated/CSS/svg/configs/interpolators/common.h +65 -0
- package/Common/cpp/reanimated/CSS/svg/configs/interpolators/ellipse.h +18 -0
- package/Common/cpp/reanimated/CSS/svg/configs/interpolators/line.h +17 -0
- package/Common/cpp/reanimated/CSS/svg/configs/interpolators/path.h +12 -0
- package/Common/cpp/reanimated/CSS/svg/configs/interpolators/rect.h +19 -0
- package/Common/cpp/reanimated/CSS/svg/values/SVGLength.cpp +107 -0
- package/Common/cpp/reanimated/CSS/svg/values/SVGLength.h +36 -0
- package/Common/cpp/reanimated/CSS/svg/values/SVGStrokeDashArray.cpp +119 -0
- package/Common/cpp/reanimated/CSS/svg/values/SVGStrokeDashArray.h +36 -0
- package/Common/cpp/reanimated/CSS/{util → utils}/DelayedItemsManager.cpp +1 -1
- package/Common/cpp/reanimated/CSS/{util → utils}/algorithms.cpp +1 -1
- package/Common/cpp/reanimated/CSS/{util → utils}/interpolators.cpp +1 -1
- package/Common/cpp/reanimated/CSS/utils/keyframes.cpp +52 -0
- package/Common/cpp/reanimated/CSS/utils/keyframes.h +15 -0
- package/Common/cpp/reanimated/CSS/{util → utils}/props.cpp +7 -4
- package/Common/cpp/reanimated/CSS/{util → utils}/props.h +4 -2
- package/Common/cpp/reanimated/Fabric/updates/UpdatesRegistryManager.cpp +11 -5
- package/Common/cpp/reanimated/Fabric/updates/UpdatesRegistryManager.h +4 -2
- package/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsManager.cpp +2 -2
- package/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsManager.h +7 -7
- package/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy.cpp +2 -42
- package/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy.h +0 -4
- package/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.cpp +0 -5
- package/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxy.cpp +52 -27
- package/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxy.h +15 -7
- package/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxySpec.cpp +16 -4
- package/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxySpec.h +8 -2
- package/Common/cpp/reanimated/Tools/FeatureFlags.h +2 -2
- package/Common/cpp/reanimated/Tools/ReanimatedVersion.cpp +9 -54
- package/Common/cpp/reanimated/Tools/ReanimatedVersion.h +0 -1
- package/README.md +1 -0
- package/android/CMakeLists.txt +12 -10
- package/android/build.gradle +18 -8
- package/compatibility.json +62 -0
- package/lib/module/Animated.js +7 -71
- package/lib/module/Animated.js.map +1 -1
- package/lib/module/Bezier.js +1 -1
- package/lib/module/Bezier.js.map +1 -1
- package/lib/module/Colors.js +4 -5
- package/lib/module/Colors.js.map +1 -1
- package/lib/module/ConfigHelper.js +1 -1
- package/lib/module/ConfigHelper.js.map +1 -1
- package/lib/module/Easing.js +1 -5
- package/lib/module/Easing.js.map +1 -1
- package/lib/module/PropAdapters.js +1 -1
- package/lib/module/PropAdapters.js.map +1 -1
- package/lib/module/ReanimatedModule/NativeReanimated.js +15 -9
- package/lib/module/ReanimatedModule/NativeReanimated.js.map +1 -1
- package/lib/module/ReanimatedModule/index.web.js +1 -1
- package/lib/module/ReanimatedModule/index.web.js.map +1 -1
- package/lib/module/ReanimatedModule/js-reanimated/JSReanimated.js +13 -9
- package/lib/module/ReanimatedModule/js-reanimated/JSReanimated.js.map +1 -1
- package/lib/module/ReanimatedModule/js-reanimated/index.js +2 -13
- package/lib/module/ReanimatedModule/js-reanimated/index.js.map +1 -1
- package/lib/module/ReanimatedModule/reanimatedModuleInstance.js +3 -3
- package/lib/module/ReanimatedModule/reanimatedModuleInstance.js.map +1 -1
- package/lib/module/ReanimatedModule/reanimatedModuleInstance.web.js +1 -1
- package/lib/module/ReanimatedModule/reanimatedModuleInstance.web.js.map +1 -1
- package/lib/module/ReducedMotion.js +2 -2
- package/lib/module/ReducedMotion.js.map +1 -1
- package/lib/module/Sensor.js +2 -2
- package/lib/module/Sensor.js.map +1 -1
- package/lib/module/SensorContainer.js +1 -1
- package/lib/module/SensorContainer.js.map +1 -1
- package/lib/module/UpdateLayoutAnimations.js +4 -4
- package/lib/module/UpdateLayoutAnimations.js.map +1 -1
- package/lib/module/ViewDescriptorsSet.js +4 -2
- package/lib/module/ViewDescriptorsSet.js.map +1 -1
- package/lib/module/WorkletEventHandler.js +2 -2
- package/lib/module/WorkletEventHandler.js.map +1 -1
- package/lib/module/animation/clamp.js +2 -2
- package/lib/module/animation/clamp.js.map +1 -1
- package/lib/module/animation/decay/decay.js +5 -5
- package/lib/module/animation/decay/decay.js.map +1 -1
- package/lib/module/animation/decay/index.js +1 -1
- package/lib/module/animation/decay/index.js.map +1 -1
- package/lib/module/animation/decay/rigidDecay.js +1 -1
- package/lib/module/animation/decay/rigidDecay.js.map +1 -1
- package/lib/module/animation/decay/rubberBandDecay.js +1 -1
- package/lib/module/animation/decay/rubberBandDecay.js.map +1 -1
- package/lib/module/animation/decay/utils.js +1 -1
- package/lib/module/animation/decay/utils.js.map +1 -1
- package/lib/module/animation/delay.js +1 -1
- package/lib/module/animation/delay.js.map +1 -1
- package/lib/module/animation/index.js +9 -9
- package/lib/module/animation/index.js.map +1 -1
- package/lib/module/animation/repeat.js +1 -1
- package/lib/module/animation/repeat.js.map +1 -1
- package/lib/module/animation/sequence.js +2 -2
- package/lib/module/animation/sequence.js.map +1 -1
- package/lib/module/animation/spring/index.js +3 -3
- package/lib/module/animation/spring/index.js.map +1 -1
- package/lib/module/animation/spring/spring.js +3 -3
- package/lib/module/animation/spring/spring.js.map +1 -1
- package/lib/module/animation/spring/springConfigs.js +2 -2
- package/lib/module/animation/spring/springUtils.js +1 -1
- package/lib/module/animation/spring/springUtils.js.map +1 -1
- package/lib/module/animation/styleAnimation.js +4 -4
- package/lib/module/animation/styleAnimation.js.map +1 -1
- package/lib/module/animation/timing.js +2 -2
- package/lib/module/animation/timing.js.map +1 -1
- package/lib/module/animation/transformationMatrix/matrixUtils.js +1 -1
- package/lib/module/animation/transformationMatrix/matrixUtils.js.map +1 -1
- package/lib/module/animation/util.js +12 -12
- package/lib/module/animation/util.js.map +1 -1
- package/lib/module/animationBuilder.js +1 -1
- package/lib/module/animationBuilder.js.map +1 -1
- package/lib/module/common/errors.js +2 -1
- package/lib/module/common/errors.js.map +1 -1
- package/lib/module/common/index.js +5 -5
- package/lib/module/common/index.js.map +1 -1
- package/lib/module/common/processors/colors.js +2 -6
- package/lib/module/common/processors/colors.js.map +1 -1
- package/lib/module/common/processors/index.js +3 -3
- package/lib/module/common/processors/index.js.map +1 -1
- package/lib/module/common/processors/shadows.js +4 -4
- package/lib/module/common/processors/shadows.js.map +1 -1
- package/lib/module/common/processors/transformOrigin.js +1 -1
- package/lib/module/common/processors/transformOrigin.js.map +1 -1
- package/lib/module/common/utils/index.js +3 -3
- package/lib/module/common/utils/index.js.map +1 -1
- package/lib/module/common/utils/parsers.js +1 -1
- package/lib/module/common/utils/parsers.js.map +1 -1
- package/lib/module/commonTypes.js +0 -4
- package/lib/module/commonTypes.js.map +1 -1
- package/lib/module/component/FlatList.js +27 -16
- package/lib/module/component/FlatList.js.map +1 -1
- package/lib/module/component/Image.js +1 -1
- package/lib/module/component/Image.js.map +1 -1
- package/lib/module/component/LayoutAnimationConfig.js +15 -9
- package/lib/module/component/LayoutAnimationConfig.js.map +1 -1
- package/lib/module/component/PerformanceMonitor.js +27 -12
- package/lib/module/component/PerformanceMonitor.js.map +1 -1
- package/lib/module/component/ReducedMotionConfig.js +3 -3
- package/lib/module/component/ReducedMotionConfig.js.map +1 -1
- package/lib/module/component/ScrollView.js +7 -4
- package/lib/module/component/ScrollView.js.map +1 -1
- package/lib/module/component/Text.js +1 -1
- package/lib/module/component/Text.js.map +1 -1
- package/lib/module/component/View.js +1 -1
- package/lib/module/component/View.js.map +1 -1
- package/lib/module/core.js +14 -14
- package/lib/module/core.js.map +1 -1
- package/lib/module/createAnimatedComponent/AnimatedComponent.js +68 -60
- package/lib/module/createAnimatedComponent/AnimatedComponent.js.map +1 -1
- package/lib/module/createAnimatedComponent/InlinePropManager.js +5 -5
- package/lib/module/createAnimatedComponent/InlinePropManager.js.map +1 -1
- package/lib/module/createAnimatedComponent/JSPropsUpdater.js +1 -1
- package/lib/module/createAnimatedComponent/JSPropsUpdater.js.map +1 -1
- package/lib/module/createAnimatedComponent/NativeEventsManager.js +2 -2
- package/lib/module/createAnimatedComponent/NativeEventsManager.js.map +1 -1
- package/lib/module/createAnimatedComponent/PropsFilter.js +15 -12
- package/lib/module/createAnimatedComponent/PropsFilter.js.map +1 -1
- package/lib/module/createAnimatedComponent/createAnimatedComponent.js +11 -8
- package/lib/module/createAnimatedComponent/createAnimatedComponent.js.map +1 -1
- package/lib/module/createAnimatedComponent/getViewInfo.js +1 -1
- package/lib/module/createAnimatedComponent/getViewInfo.js.map +1 -1
- package/lib/module/createAnimatedComponent/index.js +1 -1
- package/lib/module/createAnimatedComponent/index.js.map +1 -1
- package/lib/module/createAnimatedComponent/utils.js +2 -2
- package/lib/module/createAnimatedComponent/utils.js.map +1 -1
- package/lib/module/css/component/AnimatedComponent.js +19 -10
- package/lib/module/css/component/AnimatedComponent.js.map +1 -1
- package/lib/module/css/component/createAnimatedComponent.js +11 -8
- package/lib/module/css/component/createAnimatedComponent.js.map +1 -1
- package/lib/module/css/component/index.js +1 -1
- package/lib/module/css/component/index.js.map +1 -1
- package/lib/module/css/component/utils.js +1 -1
- package/lib/module/css/component/utils.js.map +1 -1
- package/lib/module/css/constants/index.js +4 -4
- package/lib/module/css/constants/index.js.map +1 -1
- package/lib/module/css/{easings → easing}/cubicBezier.js +1 -1
- package/lib/module/css/easing/cubicBezier.js.map +1 -0
- package/lib/module/css/{easings → easing}/index.js +3 -3
- package/lib/module/css/easing/index.js.map +1 -0
- package/lib/module/css/{easings → easing}/linear.js +2 -2
- package/lib/module/css/easing/linear.js.map +1 -0
- package/lib/module/css/{easings → easing}/steps.js +1 -1
- package/lib/module/css/easing/steps.js.map +1 -0
- package/lib/module/css/easing/types.js.map +1 -0
- package/lib/module/css/index.js +3 -3
- package/lib/module/css/index.js.map +1 -1
- package/lib/module/css/models/CSSKeyframesRuleBase.js +1 -1
- package/lib/module/css/models/CSSKeyframesRuleBase.js.map +1 -1
- package/lib/module/css/models/index.js +1 -1
- package/lib/module/css/models/index.js.map +1 -1
- package/lib/module/css/native/index.js +9 -0
- package/lib/module/css/native/index.js.map +1 -0
- package/lib/module/css/native/keyframes/CSSKeyframesRegistry.js +79 -0
- package/lib/module/css/native/keyframes/CSSKeyframesRegistry.js.map +1 -0
- package/lib/module/css/native/keyframes/CSSKeyframesRuleImpl.js +18 -0
- package/lib/module/css/native/keyframes/CSSKeyframesRuleImpl.js.map +1 -0
- package/lib/module/css/native/keyframes/index.js +5 -0
- package/lib/module/css/native/keyframes/index.js.map +1 -0
- package/lib/module/css/{managers → native/managers}/CSSAnimationsManager.js +9 -8
- package/lib/module/css/native/managers/CSSAnimationsManager.js.map +1 -0
- package/lib/module/css/{managers → native/managers}/CSSManager.js +14 -5
- package/lib/module/css/native/managers/CSSManager.js.map +1 -0
- package/lib/module/css/{managers → native/managers}/CSSTransitionsManager.js +2 -2
- package/lib/module/css/native/managers/CSSTransitionsManager.js.map +1 -0
- package/lib/module/css/native/managers/index.js.map +1 -0
- package/lib/module/css/native/normalization/animation/constants.js.map +1 -0
- package/lib/module/css/native/normalization/animation/index.js +7 -0
- package/lib/module/css/native/normalization/animation/index.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/animation/keyframes.js +11 -13
- package/lib/module/css/native/normalization/animation/keyframes.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/animation/properties.js +1 -1
- package/lib/module/css/native/normalization/animation/properties.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/animation/settings.js +4 -4
- package/lib/module/css/native/normalization/animation/settings.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/common/index.js +1 -1
- package/lib/module/css/native/normalization/common/index.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/common/settings.js +3 -3
- package/lib/module/css/native/normalization/common/settings.js.map +1 -0
- package/lib/module/css/native/normalization/index.js +6 -0
- package/lib/module/css/native/normalization/index.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/transition/config.js +5 -5
- package/lib/module/css/native/normalization/transition/config.js.map +1 -0
- package/lib/module/css/native/normalization/transition/constants.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/transition/index.js +1 -1
- package/lib/module/css/native/normalization/transition/index.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/transition/settings.js +2 -2
- package/lib/module/css/native/normalization/transition/settings.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/transition/shorthand.js +3 -3
- package/lib/module/css/native/normalization/transition/shorthand.js.map +1 -0
- package/lib/module/css/{platform/native/native.js → native/proxy.js} +6 -6
- package/lib/module/css/native/proxy.js.map +1 -0
- package/lib/module/css/native/registry.js +30 -0
- package/lib/module/css/native/registry.js.map +1 -0
- package/lib/module/css/{platform/native → native/style}/config.js +3 -4
- package/lib/module/css/native/style/config.js.map +1 -0
- package/lib/module/css/{platform/native/style/builderFactory.js → native/style/createStyleBuilder.js} +11 -7
- package/lib/module/css/native/style/createStyleBuilder.js.map +1 -0
- package/lib/module/css/native/style/index.js +6 -0
- package/lib/module/css/native/style/index.js.map +1 -0
- package/lib/module/css/{platform/native → native}/style/processors/colors.js +1 -1
- package/lib/module/css/native/style/processors/colors.js.map +1 -0
- package/lib/module/css/{platform/native → native}/style/processors/font.js +2 -2
- package/lib/module/css/native/style/processors/font.js.map +1 -0
- package/lib/module/css/native/style/processors/index.js +8 -0
- package/lib/module/css/native/style/processors/index.js.map +1 -0
- package/lib/module/css/native/style/processors/insets.js.map +1 -0
- package/lib/module/css/{platform/native → native}/style/processors/others.js +1 -1
- package/lib/module/css/native/style/processors/others.js.map +1 -0
- package/lib/module/css/{platform/native → native}/style/processors/transform.js +5 -5
- package/lib/module/css/native/style/processors/transform.js.map +1 -0
- package/lib/module/css/native/style/types.js.map +1 -0
- package/lib/module/css/native/types/animation.js.map +1 -0
- package/lib/module/css/native/types/index.js.map +1 -0
- package/lib/module/css/native/types/transition.js.map +1 -0
- package/lib/module/css/platform.js +4 -0
- package/lib/module/css/platform.js.map +1 -0
- package/lib/module/css/platform.web.js +4 -0
- package/lib/module/css/platform.web.js.map +1 -0
- package/lib/module/css/stylesheet/index.js +2 -2
- package/lib/module/css/stylesheet/index.js.map +1 -1
- package/lib/module/css/stylesheet/keyframes.js +1 -1
- package/lib/module/css/stylesheet/keyframes.js.map +1 -1
- package/lib/module/css/stylesheet/stylesheet.js +2 -2
- package/lib/module/css/stylesheet/stylesheet.js.map +1 -1
- package/lib/module/css/svg/index.js +4 -0
- package/lib/module/css/svg/index.js.map +1 -0
- package/lib/module/css/svg/init.js +14 -0
- package/lib/module/css/svg/init.js.map +1 -0
- package/lib/module/css/svg/init.web.js +6 -0
- package/lib/module/css/svg/init.web.js.map +1 -0
- package/lib/module/css/svg/native/configs/circle.js +14 -0
- package/lib/module/css/svg/native/configs/circle.js.map +1 -0
- package/lib/module/css/svg/native/configs/common.js +112 -0
- package/lib/module/css/svg/native/configs/common.js.map +1 -0
- package/lib/module/css/svg/native/configs/ellipse.js +12 -0
- package/lib/module/css/svg/native/configs/ellipse.js.map +1 -0
- package/lib/module/css/svg/native/configs/index.js +8 -0
- package/lib/module/css/svg/native/configs/index.js.map +1 -0
- package/lib/module/css/svg/native/configs/line.js +12 -0
- package/lib/module/css/svg/native/configs/line.js.map +1 -0
- package/lib/module/css/svg/native/configs/path.js +10 -0
- package/lib/module/css/svg/native/configs/path.js.map +1 -0
- package/lib/module/css/svg/native/configs/rect.js +14 -0
- package/lib/module/css/svg/native/configs/rect.js.map +1 -0
- package/lib/module/css/svg/native/index.js +4 -0
- package/lib/module/css/svg/native/index.js.map +1 -0
- package/lib/module/css/svg/native/processors/colors.js +13 -0
- package/lib/module/css/svg/native/processors/colors.js.map +1 -0
- package/lib/module/css/svg/native/processors/index.js +7 -0
- package/lib/module/css/svg/native/processors/index.js.map +1 -0
- package/lib/module/css/svg/native/processors/opacity.js +7 -0
- package/lib/module/css/svg/native/processors/opacity.js.map +1 -0
- package/lib/module/css/svg/native/processors/others.js +4 -0
- package/lib/module/css/svg/native/processors/others.js.map +1 -0
- package/lib/module/css/svg/native/processors/stroke.js +33 -0
- package/lib/module/css/svg/native/processors/stroke.js.map +1 -0
- package/lib/module/css/utils/guards.js +3 -2
- package/lib/module/css/utils/guards.js.map +1 -1
- package/lib/module/css/utils/index.js +5 -5
- package/lib/module/css/utils/index.js.map +1 -1
- package/lib/module/css/utils/parsers.js +2 -2
- package/lib/module/css/utils/parsers.js.map +1 -1
- package/lib/module/css/utils/props.js +3 -3
- package/lib/module/css/utils/props.js.map +1 -1
- package/lib/module/css/{platform/web → web}/animationParser.js +4 -4
- package/lib/module/css/web/animationParser.js.map +1 -0
- package/lib/module/css/{platform/web → web}/config.js +2 -2
- package/lib/module/css/web/config.js.map +1 -0
- package/lib/module/css/{platform/web → web}/domUtils.js +1 -1
- package/lib/module/css/web/domUtils.js.map +1 -0
- package/lib/module/css/web/index.js +9 -0
- package/lib/module/css/web/index.js.map +1 -0
- package/lib/module/css/{models/CSSKeyframesRule.web.js → web/keyframes/CSSKeyframesRuleImpl.js} +3 -3
- package/lib/module/css/web/keyframes/CSSKeyframesRuleImpl.js.map +1 -0
- package/lib/module/css/web/keyframes/index.js +4 -0
- package/lib/module/css/web/keyframes/index.js.map +1 -0
- package/lib/module/css/{managers/CSSAnimationsManager.web.js → web/managers/CSSAnimationsManager.js} +7 -5
- package/lib/module/css/web/managers/CSSAnimationsManager.js.map +1 -0
- package/lib/module/css/{managers/CSSManager.web.js → web/managers/CSSManager.js} +4 -4
- package/lib/module/css/web/managers/CSSManager.js.map +1 -0
- package/lib/module/css/{managers/CSSTransitionsManager.web.js → web/managers/CSSTransitionsManager.js} +4 -3
- package/lib/module/css/web/managers/CSSTransitionsManager.js.map +1 -0
- package/lib/module/css/web/managers/index.js +4 -0
- package/lib/module/css/web/managers/index.js.map +1 -0
- package/lib/module/css/web/normalization/index.js +4 -0
- package/lib/module/css/web/normalization/index.js.map +1 -0
- package/lib/module/css/{platform/web → web}/normalization/transition.js +1 -1
- package/lib/module/css/web/normalization/transition.js.map +1 -0
- package/lib/module/css/{platform/web → web}/style/builderFactories.js +2 -2
- package/lib/module/css/web/style/builderFactories.js.map +1 -0
- package/lib/module/css/web/style/builders/index.js +4 -0
- package/lib/module/css/web/style/builders/index.js.map +1 -0
- package/lib/module/css/{platform/web → web}/style/builders/shadows.js +4 -4
- package/lib/module/css/web/style/builders/shadows.js.map +1 -0
- package/lib/module/css/web/style/index.js +6 -0
- package/lib/module/css/web/style/index.js.map +1 -0
- package/lib/module/css/{platform/web → web}/style/processors/colors.js +2 -2
- package/lib/module/css/web/style/processors/colors.js.map +1 -0
- package/lib/module/css/{platform/web → web}/style/processors/filter.js +1 -1
- package/lib/module/css/web/style/processors/filter.js.map +1 -0
- package/lib/module/css/{platform/web → web}/style/processors/font.js +1 -1
- package/lib/module/css/web/style/processors/font.js.map +1 -0
- package/lib/module/css/web/style/processors/index.js +9 -0
- package/lib/module/css/web/style/processors/index.js.map +1 -0
- package/lib/module/css/{platform/web → web}/style/processors/margins.js +1 -1
- package/lib/module/css/web/style/processors/margins.js.map +1 -0
- package/lib/module/css/{platform/web → web}/style/processors/paddings.js +1 -1
- package/lib/module/css/web/style/processors/paddings.js.map +1 -0
- package/lib/module/css/{platform/web → web}/style/processors/transforms.js +1 -1
- package/lib/module/css/web/style/processors/transforms.js.map +1 -0
- package/lib/module/css/web/style/types.js.map +1 -0
- package/lib/module/css/{platform/web → web}/utils.js +3 -3
- package/lib/module/css/web/utils.js.map +1 -0
- package/lib/module/culori/index.js +1 -1
- package/lib/module/culori/index.js.map +1 -1
- package/lib/module/culori/oklab.js +1 -1
- package/lib/module/culori/oklab.js.map +1 -1
- package/lib/module/fabricUtils.js +8 -24
- package/lib/module/fabricUtils.js.map +1 -1
- package/lib/module/fabricUtils.web.js +1 -1
- package/lib/module/fabricUtils.web.js.map +1 -1
- package/lib/module/featureFlags/index.js +53 -0
- package/lib/module/featureFlags/index.js.map +1 -0
- package/lib/module/featureFlags/staticFlags.json +4 -2
- package/lib/module/frameCallback/FrameCallbackRegistryJS.js +1 -1
- package/lib/module/frameCallback/FrameCallbackRegistryJS.js.map +1 -1
- package/lib/module/hook/index.js +15 -15
- package/lib/module/hook/index.js.map +1 -1
- package/lib/module/hook/useAnimatedKeyboard.js +2 -2
- package/lib/module/hook/useAnimatedKeyboard.js.map +1 -1
- package/lib/module/hook/useAnimatedProps.js +2 -2
- package/lib/module/hook/useAnimatedProps.js.map +1 -1
- package/lib/module/hook/useAnimatedReaction.js +3 -3
- package/lib/module/hook/useAnimatedReaction.js.map +1 -1
- package/lib/module/hook/useAnimatedRef.js +23 -29
- package/lib/module/hook/useAnimatedRef.js.map +1 -1
- package/lib/module/hook/useAnimatedScrollHandler.js +2 -2
- package/lib/module/hook/useAnimatedScrollHandler.js.map +1 -1
- package/lib/module/hook/useAnimatedSensor.js +2 -2
- package/lib/module/hook/useAnimatedSensor.js.map +1 -1
- package/lib/module/hook/useAnimatedStyle.js +27 -18
- package/lib/module/hook/useAnimatedStyle.js.map +1 -1
- package/lib/module/hook/useComposedEventHandler.js +3 -3
- package/lib/module/hook/useComposedEventHandler.js.map +1 -1
- package/lib/module/hook/useDerivedValue.js +3 -3
- package/lib/module/hook/useDerivedValue.js.map +1 -1
- package/lib/module/hook/useEvent.js +1 -1
- package/lib/module/hook/useEvent.js.map +1 -1
- package/lib/module/hook/useFrameCallback.js +1 -1
- package/lib/module/hook/useFrameCallback.js.map +1 -1
- package/lib/module/hook/useHandler.js +2 -2
- package/lib/module/hook/useHandler.js.map +1 -1
- package/lib/module/hook/useReducedMotion.js +1 -1
- package/lib/module/hook/useReducedMotion.js.map +1 -1
- package/lib/module/hook/useScrollOffset.js +8 -7
- package/lib/module/hook/useScrollOffset.js.map +1 -1
- package/lib/module/hook/useSharedValue.js +2 -2
- package/lib/module/hook/useSharedValue.js.map +1 -1
- package/lib/module/hook/utils.js +1 -1
- package/lib/module/hook/utils.js.map +1 -1
- package/lib/module/index.js +27 -27
- package/lib/module/index.js.map +1 -1
- package/lib/module/initializers.js +7 -5
- package/lib/module/initializers.js.map +1 -1
- package/lib/module/interpolateColor.js +6 -6
- package/lib/module/interpolateColor.js.map +1 -1
- package/lib/module/interpolation.js +1 -1
- package/lib/module/interpolation.js.map +1 -1
- package/lib/module/jestUtils.js +1 -1
- package/lib/module/jestUtils.js.map +1 -1
- package/lib/module/layoutReanimation/animationBuilder/BaseAnimationBuilder.js +4 -4
- package/lib/module/layoutReanimation/animationBuilder/BaseAnimationBuilder.js.map +1 -1
- package/lib/module/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js +40 -30
- package/lib/module/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js.map +1 -1
- package/lib/module/layoutReanimation/animationBuilder/Keyframe.js +5 -5
- package/lib/module/layoutReanimation/animationBuilder/Keyframe.js.map +1 -1
- package/lib/module/layoutReanimation/animationBuilder/index.js +3 -3
- package/lib/module/layoutReanimation/animationBuilder/index.js.map +1 -1
- package/lib/module/layoutReanimation/animationsManager.js +4 -4
- package/lib/module/layoutReanimation/animationsManager.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Bounce.js +2 -2
- package/lib/module/layoutReanimation/defaultAnimations/Bounce.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Fade.js +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Fade.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Flip.js +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Flip.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Lightspeed.js +2 -2
- package/lib/module/layoutReanimation/defaultAnimations/Lightspeed.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Pinwheel.js +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Pinwheel.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Roll.js +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Roll.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Rotate.js +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Rotate.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Slide.js +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Slide.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Stretch.js +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Stretch.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Zoom.js +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Zoom.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/index.js +10 -10
- package/lib/module/layoutReanimation/defaultAnimations/index.js.map +1 -1
- package/lib/module/layoutReanimation/defaultTransitions/CurvedTransition.js +4 -4
- package/lib/module/layoutReanimation/defaultTransitions/CurvedTransition.js.map +1 -1
- package/lib/module/layoutReanimation/defaultTransitions/EntryExitTransition.js +4 -4
- package/lib/module/layoutReanimation/defaultTransitions/EntryExitTransition.js.map +1 -1
- package/lib/module/layoutReanimation/defaultTransitions/FadingTransition.js +2 -2
- package/lib/module/layoutReanimation/defaultTransitions/FadingTransition.js.map +1 -1
- package/lib/module/layoutReanimation/defaultTransitions/JumpingTransition.js +3 -3
- package/lib/module/layoutReanimation/defaultTransitions/JumpingTransition.js.map +1 -1
- package/lib/module/layoutReanimation/defaultTransitions/LinearTransition.js +1 -1
- package/lib/module/layoutReanimation/defaultTransitions/LinearTransition.js.map +1 -1
- package/lib/module/layoutReanimation/defaultTransitions/SequencedTransition.js +2 -2
- package/lib/module/layoutReanimation/defaultTransitions/SequencedTransition.js.map +1 -1
- package/lib/module/layoutReanimation/defaultTransitions/index.js +6 -6
- package/lib/module/layoutReanimation/defaultTransitions/index.js.map +1 -1
- package/lib/module/layoutReanimation/index.js +4 -4
- package/lib/module/layoutReanimation/index.js.map +1 -1
- package/lib/module/layoutReanimation/web/Easing.web.js +14 -0
- package/lib/module/layoutReanimation/web/Easing.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Bounce.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Bounce.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Fade.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Fade.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Flip.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Flip.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Lightspeed.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Lightspeed.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Pinwheel.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Pinwheel.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Roll.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Roll.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Rotate.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Rotate.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Slide.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Slide.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Stretch.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Stretch.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Zoom.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Zoom.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animationParser.js +1 -1
- package/lib/module/layoutReanimation/web/animationParser.js.map +1 -1
- package/lib/module/layoutReanimation/web/animationsManager.js +9 -9
- package/lib/module/layoutReanimation/web/animationsManager.js.map +1 -1
- package/lib/module/layoutReanimation/web/componentStyle.js +1 -1
- package/lib/module/layoutReanimation/web/componentStyle.js.map +1 -1
- package/lib/module/layoutReanimation/web/componentUtils.js +63 -25
- package/lib/module/layoutReanimation/web/componentUtils.js.map +1 -1
- package/lib/module/layoutReanimation/web/config.js +10 -10
- package/lib/module/layoutReanimation/web/config.js.map +1 -1
- package/lib/module/layoutReanimation/web/createAnimation.js +9 -9
- package/lib/module/layoutReanimation/web/createAnimation.js.map +1 -1
- package/lib/module/layoutReanimation/web/domUtils.js +4 -4
- package/lib/module/layoutReanimation/web/domUtils.js.map +1 -1
- package/lib/module/layoutReanimation/web/index.js +3 -3
- package/lib/module/layoutReanimation/web/index.js.map +1 -1
- package/lib/module/layoutReanimation/web/transition/Curved.web.js +3 -2
- package/lib/module/layoutReanimation/web/transition/Curved.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/transition/EntryExit.web.js +1 -1
- package/lib/module/layoutReanimation/web/transition/EntryExit.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/transition/Jumping.web.js +1 -1
- package/lib/module/layoutReanimation/web/transition/Jumping.web.js.map +1 -1
- package/lib/module/mappers.js +2 -2
- package/lib/module/mappers.js.map +1 -1
- package/lib/module/mock.js +2 -2
- package/lib/module/mock.js.map +1 -1
- package/lib/module/mutables.js +116 -9
- package/lib/module/mutables.js.map +1 -1
- package/lib/module/platform-specific/checkCppVersion.js +2 -2
- package/lib/module/platform-specific/checkCppVersion.js.map +1 -1
- package/lib/module/platform-specific/findHostInstance.js +4 -4
- package/lib/module/platform-specific/findHostInstance.js.map +1 -1
- package/lib/module/platform-specific/jsVersion.js +1 -1
- package/lib/module/platform-specific/jsVersion.js.map +1 -1
- package/lib/module/platform-specific/workletsVersion.js +3 -2
- package/lib/module/platform-specific/workletsVersion.js.map +1 -1
- package/lib/module/platformFunctions/dispatchCommand.js +4 -3
- package/lib/module/platformFunctions/dispatchCommand.js.map +1 -1
- package/lib/module/platformFunctions/dispatchCommand.web.js +1 -1
- package/lib/module/platformFunctions/dispatchCommand.web.js.map +1 -1
- package/lib/module/platformFunctions/getRelativeCoords.js.map +1 -1
- package/lib/module/platformFunctions/index.js +1 -1
- package/lib/module/platformFunctions/index.js.map +1 -1
- package/lib/module/platformFunctions/measure.js +4 -3
- package/lib/module/platformFunctions/measure.js.map +1 -1
- package/lib/module/platformFunctions/measure.web.js +1 -1
- package/lib/module/platformFunctions/measure.web.js.map +1 -1
- package/lib/module/platformFunctions/scrollTo.js +3 -5
- package/lib/module/platformFunctions/scrollTo.js.map +1 -1
- package/lib/module/platformFunctions/scrollTo.web.js.map +1 -1
- package/lib/module/platformFunctions/setGestureState.js +3 -2
- package/lib/module/platformFunctions/setGestureState.js.map +1 -1
- package/lib/module/platformFunctions/setGestureState.web.js +1 -1
- package/lib/module/platformFunctions/setGestureState.web.js.map +1 -1
- package/lib/module/platformFunctions/setNativeProps.js +4 -3
- package/lib/module/platformFunctions/setNativeProps.js.map +1 -1
- package/lib/module/platformFunctions/setNativeProps.web.js +1 -1
- package/lib/module/platformFunctions/setNativeProps.web.js.map +1 -1
- package/lib/module/screenTransition/RNScreensTurboModule.js +1 -1
- package/lib/module/screenTransition/RNScreensTurboModule.js.map +1 -1
- package/lib/module/screenTransition/animationManager.js +2 -2
- package/lib/module/screenTransition/animationManager.js.map +1 -1
- package/lib/module/screenTransition/index.js +2 -2
- package/lib/module/screenTransition/index.js.map +1 -1
- package/lib/module/screenTransition/styleUpdater.js +1 -1
- package/lib/module/screenTransition/styleUpdater.js.map +1 -1
- package/lib/module/screenTransition/swipeSimulator.js +2 -2
- package/lib/module/screenTransition/swipeSimulator.js.map +1 -1
- package/lib/module/specs/index.js +1 -1
- package/lib/module/specs/index.js.map +1 -1
- package/lib/module/updateProps/index.js +2 -2
- package/lib/module/updateProps/index.js.map +1 -1
- package/lib/module/updateProps/updateProps.js +3 -3
- package/lib/module/updateProps/updateProps.js.map +1 -1
- package/lib/module/workletFunctions.js +2 -2
- package/lib/module/workletFunctions.js.map +1 -1
- package/lib/typescript/Animated.d.ts +0 -71
- package/lib/typescript/Animated.d.ts.map +1 -1
- package/lib/typescript/Colors.d.ts.map +1 -1
- package/lib/typescript/Easing.d.ts +0 -4
- package/lib/typescript/Easing.d.ts.map +1 -1
- package/lib/typescript/ReanimatedModule/js-reanimated/JSReanimated.d.ts.map +1 -1
- package/lib/typescript/ReanimatedModule/js-reanimated/index.d.ts.map +1 -1
- package/lib/typescript/ReanimatedModule/reanimatedModuleProxy.d.ts +10 -10
- package/lib/typescript/ReanimatedModule/reanimatedModuleProxy.d.ts.map +1 -1
- package/lib/typescript/Sensor.d.ts +2 -2
- package/lib/typescript/Sensor.d.ts.map +1 -1
- package/lib/typescript/SensorContainer.d.ts +2 -2
- package/lib/typescript/SensorContainer.d.ts.map +1 -1
- package/lib/typescript/ViewDescriptorsSet.d.ts +2 -2
- package/lib/typescript/ViewDescriptorsSet.d.ts.map +1 -1
- package/lib/typescript/animation/clamp.d.ts.map +1 -1
- package/lib/typescript/animation/decay/decay.d.ts.map +1 -1
- package/lib/typescript/animation/delay.d.ts.map +1 -1
- package/lib/typescript/animation/repeat.d.ts.map +1 -1
- package/lib/typescript/animation/spring/spring.d.ts.map +1 -1
- package/lib/typescript/animation/spring/springConfigs.d.ts +5 -5
- package/lib/typescript/animation/spring/springConfigs.d.ts.map +1 -1
- package/lib/typescript/animation/timing.d.ts.map +1 -1
- package/lib/typescript/animation/util.d.ts.map +1 -1
- package/lib/typescript/common/errors.d.ts.map +1 -1
- package/lib/typescript/common/processors/colors.d.ts.map +1 -1
- package/lib/typescript/common/utils/guards.d.ts.map +1 -1
- package/lib/typescript/commonTypes.d.ts +26 -10
- package/lib/typescript/commonTypes.d.ts.map +1 -1
- package/lib/typescript/component/FlatList.d.ts +2 -3
- package/lib/typescript/component/FlatList.d.ts.map +1 -1
- package/lib/typescript/component/Image.d.ts +1 -2
- package/lib/typescript/component/Image.d.ts.map +1 -1
- package/lib/typescript/component/PerformanceMonitor.d.ts +0 -1
- package/lib/typescript/component/PerformanceMonitor.d.ts.map +1 -1
- package/lib/typescript/component/ScrollView.d.ts +1 -1
- package/lib/typescript/component/ScrollView.d.ts.map +1 -1
- package/lib/typescript/component/Text.d.ts +1 -2
- package/lib/typescript/component/Text.d.ts.map +1 -1
- package/lib/typescript/component/View.d.ts +1 -2
- package/lib/typescript/component/View.d.ts.map +1 -1
- package/lib/typescript/core.d.ts +7 -8
- package/lib/typescript/core.d.ts.map +1 -1
- package/lib/typescript/createAnimatedComponent/AnimatedComponent.d.ts +6 -2
- package/lib/typescript/createAnimatedComponent/AnimatedComponent.d.ts.map +1 -1
- package/lib/typescript/createAnimatedComponent/JSPropsUpdater.d.ts +0 -1
- package/lib/typescript/createAnimatedComponent/JSPropsUpdater.d.ts.map +1 -1
- package/lib/typescript/createAnimatedComponent/PropsFilter.d.ts.map +1 -1
- package/lib/typescript/createAnimatedComponent/commonTypes.d.ts +18 -13
- package/lib/typescript/createAnimatedComponent/commonTypes.d.ts.map +1 -1
- package/lib/typescript/createAnimatedComponent/createAnimatedComponent.d.ts +5 -5
- package/lib/typescript/createAnimatedComponent/createAnimatedComponent.d.ts.map +1 -1
- package/lib/typescript/createAnimatedComponent/getViewInfo.d.ts.map +1 -1
- package/lib/typescript/createAnimatedComponent/utils.d.ts +4 -2
- package/lib/typescript/createAnimatedComponent/utils.d.ts.map +1 -1
- package/lib/typescript/css/component/AnimatedComponent.d.ts +3 -3
- package/lib/typescript/css/component/AnimatedComponent.d.ts.map +1 -1
- package/lib/typescript/css/constants/settings.d.ts +1 -1
- package/lib/typescript/css/constants/settings.d.ts.map +1 -1
- package/lib/typescript/css/easing/cubicBezier.d.ts.map +1 -0
- package/lib/typescript/css/easing/index.d.ts.map +1 -0
- package/lib/typescript/css/easing/linear.d.ts.map +1 -0
- package/lib/typescript/css/easing/steps.d.ts.map +1 -0
- package/lib/typescript/css/easing/types.d.ts.map +1 -0
- package/lib/typescript/css/index.d.ts +1 -1
- package/lib/typescript/css/index.d.ts.map +1 -1
- package/lib/typescript/css/models/index.d.ts +1 -1
- package/lib/typescript/css/models/index.d.ts.map +1 -1
- package/lib/typescript/css/native/index.d.ts +8 -0
- package/lib/typescript/css/native/index.d.ts.map +1 -0
- package/lib/typescript/css/{registry → native/keyframes}/CSSKeyframesRegistry.d.ts +4 -4
- package/lib/typescript/css/native/keyframes/CSSKeyframesRegistry.d.ts.map +1 -0
- package/lib/typescript/css/native/keyframes/CSSKeyframesRuleImpl.d.ts +9 -0
- package/lib/typescript/css/native/keyframes/CSSKeyframesRuleImpl.d.ts.map +1 -0
- package/lib/typescript/css/native/keyframes/index.d.ts +3 -0
- package/lib/typescript/css/native/keyframes/index.d.ts.map +1 -0
- package/lib/typescript/css/{managers → native/managers}/CSSAnimationsManager.d.ts +5 -5
- package/lib/typescript/css/native/managers/CSSAnimationsManager.d.ts.map +1 -0
- package/lib/typescript/css/native/managers/CSSManager.d.ts +15 -0
- package/lib/typescript/css/native/managers/CSSManager.d.ts.map +1 -0
- package/lib/typescript/css/{managers → native/managers}/CSSTransitionsManager.d.ts +2 -3
- package/lib/typescript/css/native/managers/CSSTransitionsManager.d.ts.map +1 -0
- package/lib/typescript/css/native/managers/index.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/normalization/animation/constants.d.ts +1 -1
- package/lib/typescript/css/native/normalization/animation/constants.d.ts.map +1 -0
- package/lib/typescript/css/native/normalization/animation/index.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/normalization/animation/keyframes.d.ts +3 -2
- package/lib/typescript/css/native/normalization/animation/keyframes.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/normalization/animation/properties.d.ts +1 -1
- package/lib/typescript/css/native/normalization/animation/properties.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/normalization/animation/settings.d.ts +1 -1
- package/lib/typescript/css/native/normalization/animation/settings.d.ts.map +1 -0
- package/lib/typescript/css/native/normalization/common/index.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/normalization/common/settings.d.ts +2 -2
- package/lib/typescript/css/native/normalization/common/settings.d.ts.map +1 -0
- package/lib/typescript/css/native/normalization/index.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/normalization/transition/config.d.ts +1 -1
- package/lib/typescript/css/native/normalization/transition/config.d.ts.map +1 -0
- package/lib/typescript/css/native/normalization/transition/constants.d.ts +3 -0
- package/lib/typescript/css/native/normalization/transition/constants.d.ts.map +1 -0
- package/lib/typescript/css/native/normalization/transition/index.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/normalization/transition/settings.d.ts +1 -1
- package/lib/typescript/css/native/normalization/transition/settings.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/normalization/transition/shorthand.d.ts +1 -1
- package/lib/typescript/css/native/normalization/transition/shorthand.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native/native.d.ts → native/proxy.d.ts} +4 -4
- package/lib/typescript/css/native/proxy.d.ts.map +1 -0
- package/lib/typescript/css/native/registry.d.ts +8 -0
- package/lib/typescript/css/native/registry.d.ts.map +1 -0
- package/lib/typescript/css/native/style/config.d.ts +4 -0
- package/lib/typescript/css/native/style/config.d.ts.map +1 -0
- package/lib/typescript/css/native/style/createStyleBuilder.d.ts +9 -0
- package/lib/typescript/css/native/style/createStyleBuilder.d.ts.map +1 -0
- package/lib/typescript/css/native/style/index.d.ts +6 -0
- package/lib/typescript/css/native/style/index.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/style/processors/colors.d.ts +1 -1
- package/lib/typescript/css/native/style/processors/colors.d.ts.map +1 -0
- package/lib/typescript/css/native/style/processors/font.d.ts.map +1 -0
- package/lib/typescript/css/native/style/processors/index.d.ts.map +1 -0
- package/lib/typescript/css/native/style/processors/insets.d.ts.map +1 -0
- package/lib/typescript/css/native/style/processors/others.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/style/processors/transform.d.ts +1 -1
- package/lib/typescript/css/native/style/processors/transform.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/style/types.d.ts +6 -5
- package/lib/typescript/css/native/style/types.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/types/animation.d.ts +2 -2
- package/lib/typescript/css/native/types/animation.d.ts.map +1 -0
- package/lib/typescript/css/native/types/index.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/types/transition.d.ts +1 -1
- package/lib/typescript/css/native/types/transition.d.ts.map +1 -0
- package/lib/typescript/css/platform.d.ts +2 -0
- package/lib/typescript/css/platform.d.ts.map +1 -0
- package/lib/typescript/css/platform.web.d.ts +2 -0
- package/lib/typescript/css/platform.web.d.ts.map +1 -0
- package/lib/typescript/css/stylesheet/stylesheet.d.ts.map +1 -1
- package/lib/typescript/css/svg/index.d.ts +2 -0
- package/lib/typescript/css/svg/index.d.ts.map +1 -0
- package/lib/typescript/css/svg/init.d.ts +2 -0
- package/lib/typescript/css/svg/init.d.ts.map +1 -0
- package/lib/typescript/css/svg/init.web.d.ts +2 -0
- package/lib/typescript/css/svg/init.web.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/configs/circle.d.ts +4 -0
- package/lib/typescript/css/svg/native/configs/circle.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/configs/common.d.ts +318 -0
- package/lib/typescript/css/svg/native/configs/common.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/configs/ellipse.d.ts +4 -0
- package/lib/typescript/css/svg/native/configs/ellipse.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/configs/index.d.ts +6 -0
- package/lib/typescript/css/svg/native/configs/index.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/configs/line.d.ts +4 -0
- package/lib/typescript/css/svg/native/configs/line.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/configs/path.d.ts +4 -0
- package/lib/typescript/css/svg/native/configs/path.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/configs/rect.d.ts +4 -0
- package/lib/typescript/css/svg/native/configs/rect.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/index.d.ts +2 -0
- package/lib/typescript/css/svg/native/index.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/processors/colors.d.ts +4 -0
- package/lib/typescript/css/svg/native/processors/colors.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/processors/index.d.ts +5 -0
- package/lib/typescript/css/svg/native/processors/index.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/processors/opacity.d.ts +4 -0
- package/lib/typescript/css/svg/native/processors/opacity.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/processors/others.d.ts +3 -0
- package/lib/typescript/css/svg/native/processors/others.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/processors/stroke.d.ts +7 -0
- package/lib/typescript/css/svg/native/processors/stroke.d.ts.map +1 -0
- package/lib/typescript/css/types/animation.d.ts +1 -1
- package/lib/typescript/css/types/animation.d.ts.map +1 -1
- package/lib/typescript/css/types/index.d.ts +1 -0
- package/lib/typescript/css/types/index.d.ts.map +1 -1
- package/lib/typescript/css/types/transition.d.ts +1 -1
- package/lib/typescript/css/types/transition.d.ts.map +1 -1
- package/lib/typescript/css/utils/conversions.d.ts.map +1 -1
- package/lib/typescript/css/utils/guards.d.ts +7 -11
- package/lib/typescript/css/utils/guards.d.ts.map +1 -1
- package/lib/typescript/css/web/animationParser.d.ts +3 -0
- package/lib/typescript/css/web/animationParser.d.ts.map +1 -0
- package/lib/typescript/css/{platform/web → web}/config.d.ts +1 -1
- package/lib/typescript/css/web/config.d.ts.map +1 -0
- package/lib/typescript/css/web/domUtils.d.ts.map +1 -0
- package/lib/typescript/css/{platform/web → web}/index.d.ts +2 -0
- package/lib/typescript/css/web/index.d.ts.map +1 -0
- package/lib/typescript/css/{models/CSSKeyframesRule.web.d.ts → web/keyframes/CSSKeyframesRuleImpl.d.ts} +3 -3
- package/lib/typescript/css/web/keyframes/CSSKeyframesRuleImpl.d.ts.map +1 -0
- package/lib/typescript/css/web/keyframes/index.d.ts +2 -0
- package/lib/typescript/css/web/keyframes/index.d.ts.map +1 -0
- package/lib/typescript/css/web/managers/CSSAnimationsManager.d.ts +13 -0
- package/lib/typescript/css/web/managers/CSSAnimationsManager.d.ts.map +1 -0
- package/lib/typescript/css/{managers/CSSManager.web.d.ts → web/managers/CSSManager.d.ts} +4 -4
- package/lib/typescript/css/web/managers/CSSManager.d.ts.map +1 -0
- package/lib/typescript/css/{managers/CSSTransitionsManager.web.d.ts → web/managers/CSSTransitionsManager.d.ts} +3 -4
- package/lib/typescript/css/web/managers/CSSTransitionsManager.d.ts.map +1 -0
- package/lib/typescript/css/web/managers/index.d.ts +2 -0
- package/lib/typescript/css/web/managers/index.d.ts.map +1 -0
- package/lib/typescript/css/web/normalization/index.d.ts.map +1 -0
- package/lib/typescript/css/{platform/web → web}/normalization/transition.d.ts +1 -1
- package/lib/typescript/css/web/normalization/transition.d.ts.map +1 -0
- package/lib/typescript/css/{platform/web → web}/style/builderFactories.d.ts +1 -1
- package/lib/typescript/css/web/style/builderFactories.d.ts.map +1 -0
- package/lib/typescript/css/web/style/builders/index.d.ts.map +1 -0
- package/lib/typescript/css/web/style/builders/shadows.d.ts.map +1 -0
- package/lib/typescript/css/web/style/index.d.ts.map +1 -0
- package/lib/typescript/css/web/style/processors/colors.d.ts.map +1 -0
- package/lib/typescript/css/web/style/processors/filter.d.ts.map +1 -0
- package/lib/typescript/css/web/style/processors/font.d.ts.map +1 -0
- package/lib/typescript/css/web/style/processors/index.d.ts.map +1 -0
- package/lib/typescript/css/web/style/processors/margins.d.ts.map +1 -0
- package/lib/typescript/css/web/style/processors/paddings.d.ts.map +1 -0
- package/lib/typescript/css/web/style/processors/transforms.d.ts.map +1 -0
- package/lib/typescript/css/{platform/web → web}/style/types.d.ts +2 -2
- package/lib/typescript/css/web/style/types.d.ts.map +1 -0
- package/lib/typescript/css/{platform/web → web}/utils.d.ts +2 -2
- package/lib/typescript/css/web/utils.d.ts.map +1 -0
- package/lib/typescript/culori/lrgb.d.ts.map +1 -1
- package/lib/typescript/fabricUtils.d.ts +3 -4
- package/lib/typescript/fabricUtils.d.ts.map +1 -1
- package/lib/typescript/featureFlags/index.d.ts +27 -0
- package/lib/typescript/featureFlags/index.d.ts.map +1 -0
- package/lib/typescript/helperTypes.d.ts +5 -15
- package/lib/typescript/helperTypes.d.ts.map +1 -1
- package/lib/typescript/hook/commonTypes.d.ts +12 -8
- package/lib/typescript/hook/commonTypes.d.ts.map +1 -1
- package/lib/typescript/hook/useAnimatedRef.d.ts +4 -4
- package/lib/typescript/hook/useAnimatedRef.d.ts.map +1 -1
- package/lib/typescript/hook/useAnimatedStyle.d.ts.map +1 -1
- package/lib/typescript/hook/useScrollOffset.d.ts +2 -6
- package/lib/typescript/hook/useScrollOffset.d.ts.map +1 -1
- package/lib/typescript/hook/utils.d.ts +1 -1
- package/lib/typescript/hook/utils.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +4 -4
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/initializers.d.ts.map +1 -1
- package/lib/typescript/jestUtils.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/animationBuilder/ComplexAnimationBuilder.d.ts +25 -17
- package/lib/typescript/layoutReanimation/animationBuilder/ComplexAnimationBuilder.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/animationBuilder/Keyframe.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/defaultAnimations/Flip.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/defaultAnimations/Rotate.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/defaultAnimations/Slide.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/defaultAnimations/Zoom.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/web/Easing.web.d.ts +2 -0
- package/lib/typescript/layoutReanimation/web/Easing.web.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/web/componentUtils.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/web/config.d.ts +3 -3
- package/lib/typescript/layoutReanimation/web/config.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/web/transition/Curved.web.d.ts.map +1 -1
- package/lib/typescript/mutables.d.ts +1 -1
- package/lib/typescript/mutables.d.ts.map +1 -1
- package/lib/typescript/platform-specific/findHostInstance.d.ts +3 -3
- package/lib/typescript/platform-specific/findHostInstance.d.ts.map +1 -1
- package/lib/typescript/platform-specific/jsVersion.d.ts +1 -1
- package/lib/typescript/platform-specific/jsVersion.d.ts.map +1 -1
- package/lib/typescript/platform-specific/workletsVersion.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/dispatchCommand.d.ts +2 -2
- package/lib/typescript/platformFunctions/dispatchCommand.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/getRelativeCoords.d.ts +2 -2
- package/lib/typescript/platformFunctions/getRelativeCoords.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/measure.d.ts +2 -3
- package/lib/typescript/platformFunctions/measure.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/measure.web.d.ts +2 -3
- package/lib/typescript/platformFunctions/measure.web.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/scrollTo.d.ts +2 -2
- package/lib/typescript/platformFunctions/scrollTo.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/scrollTo.web.d.ts +2 -2
- package/lib/typescript/platformFunctions/scrollTo.web.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/setGestureState.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/setNativeProps.d.ts +2 -3
- package/lib/typescript/platformFunctions/setNativeProps.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/setNativeProps.web.d.ts +2 -3
- package/lib/typescript/platformFunctions/setNativeProps.web.d.ts.map +1 -1
- package/lib/typescript/updateProps/updateProps.d.ts +2 -2
- package/lib/typescript/updateProps/updateProps.d.ts.map +1 -1
- package/lib/typescript/workletFunctions.d.ts.map +1 -1
- package/package.json +18 -15
- package/scripts/reanimated_utils.rb +3 -4
- package/scripts/validate-react-native-version.js +43 -0
- package/scripts/validate-worklets-build.js +6 -1
- package/scripts/validate-worklets-version.js +25 -10
- package/src/Animated.ts +0 -84
- package/src/Colors.ts +4 -5
- package/src/Easing.ts +0 -5
- package/src/ReanimatedModule/NativeReanimated.ts +19 -12
- package/src/ReanimatedModule/js-reanimated/JSReanimated.ts +19 -12
- package/src/ReanimatedModule/js-reanimated/index.ts +1 -20
- package/src/ReanimatedModule/reanimatedModuleProxy.ts +11 -7
- package/src/Sensor.ts +3 -3
- package/src/SensorContainer.ts +2 -2
- package/src/UpdateLayoutAnimations.ts +2 -2
- package/src/ViewDescriptorsSet.ts +5 -3
- package/src/animation/spring/springConfigs.ts +5 -5
- package/src/animation/util.ts +15 -8
- package/src/common/errors.ts +3 -1
- package/src/common/processors/colors.ts +0 -2
- package/src/commonTypes.ts +42 -11
- package/src/component/FlatList.tsx +5 -6
- package/src/component/ScrollView.tsx +2 -3
- package/src/core.ts +12 -15
- package/src/createAnimatedComponent/AnimatedComponent.tsx +82 -60
- package/src/createAnimatedComponent/PropsFilter.tsx +16 -10
- package/src/createAnimatedComponent/commonTypes.ts +26 -12
- package/src/createAnimatedComponent/createAnimatedComponent.tsx +5 -5
- package/src/createAnimatedComponent/getViewInfo.ts +3 -1
- package/src/createAnimatedComponent/utils.ts +8 -9
- package/src/css/component/AnimatedComponent.tsx +17 -9
- package/src/css/constants/settings.ts +1 -1
- package/src/css/index.ts +1 -1
- package/src/css/models/index.ts +1 -1
- package/src/css/native/index.ts +8 -0
- package/src/css/native/keyframes/CSSKeyframesRegistry.ts +99 -0
- package/src/css/native/keyframes/CSSKeyframesRuleImpl.ts +32 -0
- package/src/css/{registry → native/keyframes}/index.ts +1 -0
- package/src/css/{managers → native/managers}/CSSAnimationsManager.ts +22 -18
- package/src/css/{managers → native/managers}/CSSManager.ts +29 -9
- package/src/css/{managers → native/managers}/CSSTransitionsManager.ts +8 -6
- package/src/css/{platform/native → native}/normalization/animation/constants.ts +1 -1
- package/src/css/{platform/native → native}/normalization/animation/keyframes.ts +26 -17
- package/src/css/{platform/native → native}/normalization/animation/properties.ts +2 -2
- package/src/css/{platform/native → native}/normalization/animation/settings.ts +3 -3
- package/src/css/{platform/native → native}/normalization/common/settings.ts +5 -5
- package/src/css/{platform/native → native}/normalization/transition/config.ts +3 -3
- package/src/css/{platform/native → native}/normalization/transition/constants.ts +1 -1
- package/src/css/{platform/native → native}/normalization/transition/settings.ts +2 -2
- package/src/css/{platform/native → native}/normalization/transition/shorthand.ts +5 -5
- package/src/css/{platform/native/native.ts → native/proxy.ts} +13 -5
- package/src/css/native/registry.ts +41 -0
- package/src/css/{platform/native → native/style}/config.ts +4 -9
- package/src/css/{platform/native/style/builderFactory.ts → native/style/createStyleBuilder.ts} +25 -10
- package/src/css/native/style/index.ts +6 -0
- package/src/css/{platform/native → native}/style/processors/colors.ts +2 -2
- package/src/css/{platform/native → native}/style/processors/font.ts +2 -2
- package/src/css/{platform/native → native}/style/processors/others.ts +1 -1
- package/src/css/{platform/native → native}/style/processors/transform.ts +6 -11
- package/src/css/{platform/native → native}/style/types.ts +6 -5
- package/src/css/{platform/native → native}/types/animation.ts +2 -2
- package/src/css/{platform/native → native}/types/transition.ts +1 -1
- package/src/css/platform.ts +2 -0
- package/src/css/platform.web.ts +2 -0
- package/src/css/stylesheet/keyframes.ts +1 -1
- package/src/css/stylesheet/stylesheet.ts +1 -1
- package/src/css/svg/index.ts +2 -0
- package/src/css/svg/init.ts +19 -0
- package/src/css/svg/init.web.ts +5 -0
- package/src/css/svg/native/configs/circle.ts +15 -0
- package/src/css/svg/native/configs/common.ts +144 -0
- package/src/css/svg/native/configs/ellipse.ts +15 -0
- package/src/css/svg/native/configs/index.ts +6 -0
- package/src/css/svg/native/configs/line.ts +14 -0
- package/src/css/svg/native/configs/path.ts +11 -0
- package/src/css/svg/native/configs/rect.ts +16 -0
- package/src/css/svg/native/index.ts +2 -0
- package/src/css/svg/native/processors/colors.ts +18 -0
- package/src/css/svg/native/processors/index.ts +5 -0
- package/src/css/svg/native/processors/opacity.ts +12 -0
- package/src/css/svg/native/processors/others.ts +9 -0
- package/src/css/svg/native/processors/stroke.ts +45 -0
- package/src/css/svg/web/.gitkeep +0 -0
- package/src/css/types/animation.ts +1 -1
- package/src/css/types/index.ts +1 -0
- package/src/css/types/transition.ts +1 -1
- package/src/css/utils/guards.ts +6 -3
- package/src/css/{platform/web → web}/animationParser.ts +2 -2
- package/src/css/{platform/web → web}/config.ts +2 -2
- package/src/css/{platform/web → web}/domUtils.ts +1 -1
- package/src/css/{platform/web → web}/index.ts +2 -0
- package/src/css/{models/CSSKeyframesRule.web.ts → web/keyframes/CSSKeyframesRuleImpl.ts} +3 -3
- package/src/css/web/keyframes/index.ts +2 -0
- package/src/css/{managers/CSSAnimationsManager.web.ts → web/managers/CSSAnimationsManager.ts} +13 -14
- package/src/css/{managers/CSSManager.web.ts → web/managers/CSSManager.ts} +7 -7
- package/src/css/{managers/CSSTransitionsManager.web.ts → web/managers/CSSTransitionsManager.ts} +8 -9
- package/src/css/web/managers/index.ts +2 -0
- package/src/css/{platform/web → web}/normalization/transition.ts +2 -2
- package/src/css/{platform/web → web}/style/builderFactories.ts +3 -3
- package/src/css/{platform/web → web}/style/builders/shadows.ts +2 -2
- package/src/css/{platform/web → web}/style/processors/colors.ts +2 -2
- package/src/css/{platform/web → web}/style/processors/filter.ts +1 -1
- package/src/css/{platform/web → web}/style/processors/font.ts +1 -1
- package/src/css/{platform/web → web}/style/types.ts +2 -2
- package/src/css/{platform/web → web}/utils.ts +5 -5
- package/src/fabricUtils.ts +17 -30
- package/src/featureFlags/{dynamicFlags.ts → index.ts} +33 -1
- package/src/featureFlags/staticFlags.json +4 -2
- package/src/helperTypes.ts +6 -25
- package/src/hook/commonTypes.ts +14 -8
- package/src/hook/useAnimatedRef.ts +30 -49
- package/src/hook/useAnimatedStyle.ts +24 -12
- package/src/hook/useHandler.ts +2 -2
- package/src/hook/useScrollOffset.ts +10 -22
- package/src/hook/utils.ts +2 -3
- package/src/index.ts +3 -17
- package/src/initializers.ts +6 -4
- package/src/layoutReanimation/animationBuilder/ComplexAnimationBuilder.ts +40 -30
- package/src/layoutReanimation/animationsManager.ts +1 -1
- package/src/layoutReanimation/web/Easing.web.ts +32 -0
- package/src/layoutReanimation/web/componentUtils.ts +69 -16
- package/src/layoutReanimation/web/config.ts +3 -2
- package/src/layoutReanimation/web/domUtils.ts +1 -1
- package/src/layoutReanimation/web/transition/Curved.web.ts +1 -0
- package/src/mock.ts +1 -1
- package/src/mutables.ts +142 -7
- package/src/platform-specific/findHostInstance.ts +7 -6
- package/src/platform-specific/jsVersion.ts +1 -1
- package/src/platform-specific/workletsVersion.ts +2 -1
- package/src/platformFunctions/dispatchCommand.ts +6 -6
- package/src/platformFunctions/getRelativeCoords.ts +3 -4
- package/src/platformFunctions/measure.ts +10 -6
- package/src/platformFunctions/measure.web.ts +3 -5
- package/src/platformFunctions/scrollTo.ts +8 -18
- package/src/platformFunctions/scrollTo.web.ts +4 -4
- package/src/platformFunctions/setGestureState.ts +3 -1
- package/src/platformFunctions/setNativeProps.ts +6 -6
- package/src/platformFunctions/setNativeProps.web.ts +3 -5
- package/src/privateGlobals.d.ts +0 -21
- package/src/updateProps/updateProps.ts +2 -3
- package/src/workletFunctions.ts +2 -2
- package/Common/cpp/reanimated/CSS/common/TransformMatrix.cpp +0 -634
- package/Common/cpp/reanimated/CSS/common/TransformMatrix.h +0 -103
- package/Common/cpp/reanimated/CSS/config/PropertyInterpolatorsConfig.h +0 -302
- package/Common/cpp/reanimated/CSS/registry/CSSKeyframesRegistry.cpp +0 -26
- package/Common/cpp/reanimated/CSS/registry/CSSKeyframesRegistry.h +0 -22
- package/Common/cpp/reanimated/CSS/util/keyframes.cpp +0 -40
- package/Common/cpp/reanimated/CSS/util/keyframes.h +0 -12
- package/lib/module/css/easings/cubicBezier.js.map +0 -1
- package/lib/module/css/easings/index.js.map +0 -1
- package/lib/module/css/easings/linear.js.map +0 -1
- package/lib/module/css/easings/steps.js.map +0 -1
- package/lib/module/css/easings/types.js.map +0 -1
- package/lib/module/css/managers/CSSAnimationsManager.js.map +0 -1
- package/lib/module/css/managers/CSSAnimationsManager.web.js.map +0 -1
- package/lib/module/css/managers/CSSManager.js.map +0 -1
- package/lib/module/css/managers/CSSManager.web.js.map +0 -1
- package/lib/module/css/managers/CSSTransitionsManager.js.map +0 -1
- package/lib/module/css/managers/CSSTransitionsManager.web.js.map +0 -1
- package/lib/module/css/managers/index.js.map +0 -1
- package/lib/module/css/models/CSSKeyframesRule.js +0 -14
- package/lib/module/css/models/CSSKeyframesRule.js.map +0 -1
- package/lib/module/css/models/CSSKeyframesRule.web.js.map +0 -1
- package/lib/module/css/platform/native/config.js.map +0 -1
- package/lib/module/css/platform/native/index.js +0 -6
- package/lib/module/css/platform/native/index.js.map +0 -1
- package/lib/module/css/platform/native/native.js.map +0 -1
- package/lib/module/css/platform/native/normalization/animation/constants.js.map +0 -1
- package/lib/module/css/platform/native/normalization/animation/index.js +0 -7
- package/lib/module/css/platform/native/normalization/animation/index.js.map +0 -1
- package/lib/module/css/platform/native/normalization/animation/keyframes.js.map +0 -1
- package/lib/module/css/platform/native/normalization/animation/properties.js.map +0 -1
- package/lib/module/css/platform/native/normalization/animation/settings.js.map +0 -1
- package/lib/module/css/platform/native/normalization/common/index.js.map +0 -1
- package/lib/module/css/platform/native/normalization/common/settings.js.map +0 -1
- package/lib/module/css/platform/native/normalization/index.js +0 -6
- package/lib/module/css/platform/native/normalization/index.js.map +0 -1
- package/lib/module/css/platform/native/normalization/transition/config.js.map +0 -1
- package/lib/module/css/platform/native/normalization/transition/constants.js.map +0 -1
- package/lib/module/css/platform/native/normalization/transition/index.js.map +0 -1
- package/lib/module/css/platform/native/normalization/transition/settings.js.map +0 -1
- package/lib/module/css/platform/native/normalization/transition/shorthand.js.map +0 -1
- package/lib/module/css/platform/native/style/builderFactory.js.map +0 -1
- package/lib/module/css/platform/native/style/index.js +0 -5
- package/lib/module/css/platform/native/style/index.js.map +0 -1
- package/lib/module/css/platform/native/style/processors/colors.js.map +0 -1
- package/lib/module/css/platform/native/style/processors/font.js.map +0 -1
- package/lib/module/css/platform/native/style/processors/index.js +0 -8
- package/lib/module/css/platform/native/style/processors/index.js.map +0 -1
- package/lib/module/css/platform/native/style/processors/insets.js.map +0 -1
- package/lib/module/css/platform/native/style/processors/others.js.map +0 -1
- package/lib/module/css/platform/native/style/processors/transform.js.map +0 -1
- package/lib/module/css/platform/native/style/types.js.map +0 -1
- package/lib/module/css/platform/native/styleBuilder.js +0 -7
- package/lib/module/css/platform/native/styleBuilder.js.map +0 -1
- package/lib/module/css/platform/native/types/animation.js.map +0 -1
- package/lib/module/css/platform/native/types/index.js.map +0 -1
- package/lib/module/css/platform/native/types/transition.js.map +0 -1
- package/lib/module/css/platform/web/animationParser.js.map +0 -1
- package/lib/module/css/platform/web/config.js.map +0 -1
- package/lib/module/css/platform/web/domUtils.js.map +0 -1
- package/lib/module/css/platform/web/index.js +0 -7
- package/lib/module/css/platform/web/index.js.map +0 -1
- package/lib/module/css/platform/web/normalization/index.js +0 -4
- package/lib/module/css/platform/web/normalization/index.js.map +0 -1
- package/lib/module/css/platform/web/normalization/transition.js.map +0 -1
- package/lib/module/css/platform/web/style/builderFactories.js.map +0 -1
- package/lib/module/css/platform/web/style/builders/index.js +0 -4
- package/lib/module/css/platform/web/style/builders/index.js.map +0 -1
- package/lib/module/css/platform/web/style/builders/shadows.js.map +0 -1
- package/lib/module/css/platform/web/style/index.js +0 -6
- package/lib/module/css/platform/web/style/index.js.map +0 -1
- package/lib/module/css/platform/web/style/processors/colors.js.map +0 -1
- package/lib/module/css/platform/web/style/processors/filter.js.map +0 -1
- package/lib/module/css/platform/web/style/processors/font.js.map +0 -1
- package/lib/module/css/platform/web/style/processors/index.js +0 -9
- package/lib/module/css/platform/web/style/processors/index.js.map +0 -1
- package/lib/module/css/platform/web/style/processors/margins.js.map +0 -1
- package/lib/module/css/platform/web/style/processors/paddings.js.map +0 -1
- package/lib/module/css/platform/web/style/processors/transforms.js.map +0 -1
- package/lib/module/css/platform/web/style/types.js.map +0 -1
- package/lib/module/css/platform/web/utils.js.map +0 -1
- package/lib/module/css/registry/CSSKeyframesRegistry.js +0 -66
- package/lib/module/css/registry/CSSKeyframesRegistry.js.map +0 -1
- package/lib/module/css/registry/CSSKeyframesRegistry.web.js +0 -5
- package/lib/module/css/registry/CSSKeyframesRegistry.web.js.map +0 -1
- package/lib/module/css/registry/index.js +0 -4
- package/lib/module/css/registry/index.js.map +0 -1
- package/lib/module/featureFlags/dynamicFlags.js +0 -30
- package/lib/module/featureFlags/dynamicFlags.js.map +0 -1
- package/lib/typescript/css/easings/cubicBezier.d.ts.map +0 -1
- package/lib/typescript/css/easings/index.d.ts.map +0 -1
- package/lib/typescript/css/easings/linear.d.ts.map +0 -1
- package/lib/typescript/css/easings/steps.d.ts.map +0 -1
- package/lib/typescript/css/easings/types.d.ts.map +0 -1
- package/lib/typescript/css/managers/CSSAnimationsManager.d.ts.map +0 -1
- package/lib/typescript/css/managers/CSSAnimationsManager.web.d.ts +0 -16
- package/lib/typescript/css/managers/CSSAnimationsManager.web.d.ts.map +0 -1
- package/lib/typescript/css/managers/CSSManager.d.ts +0 -13
- package/lib/typescript/css/managers/CSSManager.d.ts.map +0 -1
- package/lib/typescript/css/managers/CSSManager.web.d.ts.map +0 -1
- package/lib/typescript/css/managers/CSSTransitionsManager.d.ts.map +0 -1
- package/lib/typescript/css/managers/CSSTransitionsManager.web.d.ts.map +0 -1
- package/lib/typescript/css/managers/index.d.ts.map +0 -1
- package/lib/typescript/css/models/CSSKeyframesRule.d.ts +0 -9
- package/lib/typescript/css/models/CSSKeyframesRule.d.ts.map +0 -1
- package/lib/typescript/css/models/CSSKeyframesRule.web.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/config.d.ts +0 -5
- package/lib/typescript/css/platform/native/config.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/index.d.ts +0 -5
- package/lib/typescript/css/platform/native/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/native.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/animation/constants.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/animation/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/animation/keyframes.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/animation/properties.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/animation/settings.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/common/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/common/settings.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/transition/config.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/transition/constants.d.ts +0 -3
- package/lib/typescript/css/platform/native/normalization/transition/constants.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/transition/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/transition/settings.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/transition/shorthand.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/builderFactory.d.ts +0 -4
- package/lib/typescript/css/platform/native/style/builderFactory.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/index.d.ts +0 -4
- package/lib/typescript/css/platform/native/style/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/processors/colors.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/processors/font.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/processors/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/processors/insets.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/processors/others.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/processors/transform.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/types.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/styleBuilder.d.ts +0 -3
- package/lib/typescript/css/platform/native/styleBuilder.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/types/animation.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/types/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/types/transition.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/animationParser.d.ts +0 -3
- package/lib/typescript/css/platform/web/animationParser.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/config.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/domUtils.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/normalization/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/normalization/transition.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/builderFactories.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/builders/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/builders/shadows.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/processors/colors.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/processors/filter.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/processors/font.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/processors/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/processors/margins.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/processors/paddings.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/processors/transforms.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/types.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/utils.d.ts.map +0 -1
- package/lib/typescript/css/registry/CSSKeyframesRegistry.d.ts.map +0 -1
- package/lib/typescript/css/registry/CSSKeyframesRegistry.web.d.ts +0 -3
- package/lib/typescript/css/registry/CSSKeyframesRegistry.web.d.ts.map +0 -1
- package/lib/typescript/css/registry/index.d.ts +0 -2
- package/lib/typescript/css/registry/index.d.ts.map +0 -1
- package/lib/typescript/featureFlags/dynamicFlags.d.ts +0 -11
- package/lib/typescript/featureFlags/dynamicFlags.d.ts.map +0 -1
- package/src/css/models/CSSKeyframesRule.ts +0 -20
- package/src/css/platform/native/index.ts +0 -5
- package/src/css/platform/native/style/index.ts +0 -4
- package/src/css/platform/native/styleBuilder.ts +0 -7
- package/src/css/registry/CSSKeyframesRegistry.ts +0 -86
- package/src/css/registry/CSSKeyframesRegistry.web.ts +0 -3
- /package/Common/cpp/reanimated/CSS/common/{Quaternion.h → transforms/Quaternion.h} +0 -0
- /package/Common/cpp/reanimated/CSS/{config → configs}/common.h +0 -0
- /package/Common/cpp/reanimated/CSS/{registry → registries}/StaticPropsRegistry.h +0 -0
- /package/Common/cpp/reanimated/CSS/{util → utils}/DelayedItemsManager.h +0 -0
- /package/Common/cpp/reanimated/CSS/{util → utils}/algorithms.h +0 -0
- /package/Common/cpp/reanimated/CSS/{util → utils}/interpolators.h +0 -0
- /package/lib/module/css/{easings → easing}/types.js +0 -0
- /package/lib/module/css/{managers → native/managers}/index.js +0 -0
- /package/lib/module/css/{platform/native → native}/normalization/animation/constants.js +0 -0
- /package/lib/module/css/{platform/native → native}/normalization/transition/constants.js +0 -0
- /package/lib/module/css/{platform/native → native}/style/processors/insets.js +0 -0
- /package/lib/module/css/{platform/native → native}/style/types.js +0 -0
- /package/lib/module/css/{platform/native → native}/types/animation.js +0 -0
- /package/lib/module/css/{platform/native → native}/types/index.js +0 -0
- /package/lib/module/css/{platform/native → native}/types/transition.js +0 -0
- /package/lib/module/css/{platform/web → web}/style/types.js +0 -0
- /package/lib/typescript/css/{easings → easing}/cubicBezier.d.ts +0 -0
- /package/lib/typescript/css/{easings → easing}/index.d.ts +0 -0
- /package/lib/typescript/css/{easings → easing}/linear.d.ts +0 -0
- /package/lib/typescript/css/{easings → easing}/steps.d.ts +0 -0
- /package/lib/typescript/css/{easings → easing}/types.d.ts +0 -0
- /package/lib/typescript/css/{managers → native/managers}/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/normalization/animation/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/normalization/common/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/normalization/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/normalization/transition/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/style/processors/font.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/style/processors/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/style/processors/insets.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/style/processors/others.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/types/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/domUtils.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/normalization/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/builders/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/builders/shadows.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/processors/colors.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/processors/filter.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/processors/font.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/processors/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/processors/margins.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/processors/paddings.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/processors/transforms.d.ts +0 -0
- /package/src/css/{easings → easing}/cubicBezier.ts +0 -0
- /package/src/css/{easings → easing}/index.ts +0 -0
- /package/src/css/{easings → easing}/linear.ts +0 -0
- /package/src/css/{easings → easing}/steps.ts +0 -0
- /package/src/css/{easings → easing}/types.ts +0 -0
- /package/src/css/{managers → native/managers}/index.ts +0 -0
- /package/src/css/{platform/native → native}/normalization/animation/index.ts +0 -0
- /package/src/css/{platform/native → native}/normalization/common/index.ts +0 -0
- /package/src/css/{platform/native → native}/normalization/index.ts +0 -0
- /package/src/css/{platform/native → native}/normalization/transition/index.ts +0 -0
- /package/src/css/{platform/native → native}/style/processors/index.ts +0 -0
- /package/src/css/{platform/native → native}/style/processors/insets.ts +0 -0
- /package/src/css/{platform/native → native}/types/index.ts +0 -0
- /package/src/css/{platform/web → web}/normalization/index.ts +0 -0
- /package/src/css/{platform/web → web}/style/builders/index.ts +0 -0
- /package/src/css/{platform/web → web}/style/index.ts +0 -0
- /package/src/css/{platform/web → web}/style/processors/index.ts +0 -0
- /package/src/css/{platform/web → web}/style/processors/margins.ts +0 -0
- /package/src/css/{platform/web → web}/style/processors/paddings.ts +0 -0
- /package/src/css/{platform/web → web}/style/processors/transforms.ts +0 -0
package/src/initializers.ts
CHANGED
|
@@ -7,19 +7,21 @@ import {
|
|
|
7
7
|
registerLoggerConfig,
|
|
8
8
|
SHOULD_BE_USE_WEB,
|
|
9
9
|
} from './common';
|
|
10
|
+
import { initSvgCssSupport } from './css/svg';
|
|
11
|
+
import { getStaticFeatureFlag } from './featureFlags';
|
|
10
12
|
import type { IReanimatedModule } from './ReanimatedModule';
|
|
11
13
|
|
|
12
14
|
export function initializeReanimatedModule(
|
|
13
15
|
ReanimatedModule: IReanimatedModule
|
|
14
16
|
) {
|
|
15
|
-
if (IS_WEB) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
if (!ReanimatedModule) {
|
|
17
|
+
if (!IS_WEB && !ReanimatedModule) {
|
|
19
18
|
throw new ReanimatedError(
|
|
20
19
|
'Tried to initialize Reanimated without a valid ReanimatedModule'
|
|
21
20
|
);
|
|
22
21
|
}
|
|
22
|
+
if (getStaticFeatureFlag('EXPERIMENTAL_CSS_ANIMATIONS_FOR_SVG_COMPONENTS')) {
|
|
23
|
+
initSvgCssSupport();
|
|
24
|
+
}
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
registerLoggerConfig(DEFAULT_LOGGER_CONFIG);
|
|
@@ -20,8 +20,7 @@ export class ComplexAnimationBuilder extends BaseAnimationBuilder {
|
|
|
20
20
|
massV?: number;
|
|
21
21
|
stiffnessV?: number;
|
|
22
22
|
overshootClampingV?: number;
|
|
23
|
-
|
|
24
|
-
restSpeedThresholdV?: number;
|
|
23
|
+
energyThresholdV?: number;
|
|
25
24
|
initialValues?: StyleProps;
|
|
26
25
|
|
|
27
26
|
static createInstance: <T extends typeof BaseAnimationBuilder>(
|
|
@@ -195,45 +194,61 @@ export class ComplexAnimationBuilder extends BaseAnimationBuilder {
|
|
|
195
194
|
}
|
|
196
195
|
|
|
197
196
|
/**
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
* modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier).
|
|
201
|
-
*
|
|
202
|
-
* @param restDisplacementThreshold - The displacement below which the spring
|
|
203
|
-
* will snap to the designated position without further oscillations.
|
|
197
|
+
* @deprecated Use {@link energyThreshold} instead. This method currently does
|
|
198
|
+
* nothing and will be removed in the upcoming major version.
|
|
204
199
|
*/
|
|
205
200
|
static restDisplacementThreshold<T extends typeof ComplexAnimationBuilder>(
|
|
206
201
|
this: T,
|
|
207
|
-
|
|
202
|
+
_restDisplacementThreshold: number
|
|
208
203
|
) {
|
|
209
|
-
|
|
210
|
-
|
|
204
|
+
return this.createInstance();
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @deprecated Use {@link energyThreshold} instead. This method currently does
|
|
209
|
+
* nothing and will be removed in the upcoming major version.
|
|
210
|
+
*/
|
|
211
|
+
restDisplacementThreshold(_restDisplacementThreshold: number) {
|
|
212
|
+
return this;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @deprecated Use {@link energyThreshold} instead. This method currently does
|
|
217
|
+
* nothing and will be removed in a future version.
|
|
218
|
+
*/
|
|
219
|
+
static restSpeedThreshold<T extends typeof ComplexAnimationBuilder>(
|
|
220
|
+
this: T,
|
|
221
|
+
_restSpeedThreshold: number
|
|
222
|
+
) {
|
|
223
|
+
return this.createInstance();
|
|
211
224
|
}
|
|
212
225
|
|
|
213
|
-
|
|
214
|
-
|
|
226
|
+
/**
|
|
227
|
+
* @deprecated Use {@link energyThreshold} instead. This method currently does
|
|
228
|
+
* nothing and will be removed in a future version.
|
|
229
|
+
*/
|
|
230
|
+
restSpeedThreshold(_restSpeedThreshold: number): this {
|
|
215
231
|
return this;
|
|
216
232
|
}
|
|
217
233
|
|
|
218
234
|
/**
|
|
219
|
-
* Lets you adjust the
|
|
220
|
-
* chained alongside other [layout animation
|
|
235
|
+
* Lets you adjust the energy threshold level to stop the spring animation.
|
|
236
|
+
* Can be chained alongside other [layout animation
|
|
221
237
|
* modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier).
|
|
222
238
|
*
|
|
223
|
-
* @param
|
|
224
|
-
*
|
|
225
|
-
* oscillations.
|
|
239
|
+
* @param energyThreshold - Relative energy threshold below which the spring
|
|
240
|
+
* will snap to `toValue` without further oscillations. Defaults to 6e-9.
|
|
226
241
|
*/
|
|
227
|
-
static
|
|
242
|
+
static energyThreshold<T extends typeof ComplexAnimationBuilder>(
|
|
228
243
|
this: T,
|
|
229
|
-
|
|
244
|
+
energyThreshold: number
|
|
230
245
|
) {
|
|
231
246
|
const instance = this.createInstance();
|
|
232
|
-
return instance.
|
|
247
|
+
return instance.energyThreshold(energyThreshold);
|
|
233
248
|
}
|
|
234
249
|
|
|
235
|
-
|
|
236
|
-
this.
|
|
250
|
+
energyThreshold(energyThreshold: number): this {
|
|
251
|
+
this.energyThresholdV = energyThreshold;
|
|
237
252
|
return this;
|
|
238
253
|
}
|
|
239
254
|
|
|
@@ -265,8 +280,7 @@ export class ComplexAnimationBuilder extends BaseAnimationBuilder {
|
|
|
265
280
|
const mass = this.massV;
|
|
266
281
|
const stiffness = this.stiffnessV;
|
|
267
282
|
const overshootClamping = this.overshootClampingV;
|
|
268
|
-
const
|
|
269
|
-
const restSpeedThreshold = this.restSpeedThresholdV;
|
|
283
|
+
const energyThreshold = this.energyThresholdV;
|
|
270
284
|
|
|
271
285
|
const animation = type;
|
|
272
286
|
|
|
@@ -292,11 +306,7 @@ export class ComplexAnimationBuilder extends BaseAnimationBuilder {
|
|
|
292
306
|
{ variableName: 'mass', value: mass },
|
|
293
307
|
{ variableName: 'stiffness', value: stiffness },
|
|
294
308
|
{ variableName: 'overshootClamping', value: overshootClamping },
|
|
295
|
-
{
|
|
296
|
-
variableName: 'restDisplacementThreshold',
|
|
297
|
-
value: restDisplacementThreshold,
|
|
298
|
-
},
|
|
299
|
-
{ variableName: 'restSpeedThreshold', value: restSpeedThreshold },
|
|
309
|
+
{ variableName: 'energyThreshold', value: energyThreshold },
|
|
300
310
|
{ variableName: 'duration', value: duration },
|
|
301
311
|
{ variableName: 'rotate', value: rotate },
|
|
302
312
|
] as const
|
|
@@ -10,7 +10,7 @@ import type {
|
|
|
10
10
|
SharedValue,
|
|
11
11
|
} from '../commonTypes';
|
|
12
12
|
import { LayoutAnimationType } from '../commonTypes';
|
|
13
|
-
import { makeMutableUI } from '../mutables';
|
|
13
|
+
import { legacy_makeMutableUI as makeMutableUI } from '../mutables';
|
|
14
14
|
|
|
15
15
|
const TAG_OFFSET = 1e9;
|
|
16
16
|
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
import type { EasingFunctionFactory } from '../../Easing';
|
|
4
|
+
|
|
5
|
+
type BezierClosure = {
|
|
6
|
+
x1: number;
|
|
7
|
+
y1: number;
|
|
8
|
+
x2: number;
|
|
9
|
+
y2: number;
|
|
10
|
+
Bezier: () => void;
|
|
11
|
+
};
|
|
12
|
+
|
|
3
13
|
// Those are the easings that can be implemented using Bezier curves.
|
|
4
14
|
// Others should be done as CSS animations
|
|
5
15
|
export const WebEasings = {
|
|
@@ -16,4 +26,26 @@ export function getEasingByName(easingName: WebEasingsNames) {
|
|
|
16
26
|
return `cubic-bezier(${WebEasings[easingName].toString()})`;
|
|
17
27
|
}
|
|
18
28
|
|
|
29
|
+
export function maybeGetBezierEasing(
|
|
30
|
+
easing: EasingFunctionFactory
|
|
31
|
+
): null | string {
|
|
32
|
+
if (!('factory' in easing)) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const easingFactory = easing.factory;
|
|
37
|
+
|
|
38
|
+
if (!('__closure' in easingFactory)) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const closure = easingFactory.__closure as BezierClosure;
|
|
43
|
+
|
|
44
|
+
if (!('Bezier' in closure)) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return `cubic-bezier(${closure.x1}, ${closure.y1}, ${closure.x2}, ${closure.y2})`;
|
|
49
|
+
}
|
|
50
|
+
|
|
19
51
|
export type WebEasingsNames = keyof typeof WebEasings;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
import { logger } from '../../common';
|
|
3
3
|
import { LayoutAnimationType, ReduceMotion } from '../../commonTypes';
|
|
4
|
+
import type { EasingFunctionFactory } from '../../Easing';
|
|
4
5
|
import { EasingNameSymbol } from '../../Easing';
|
|
5
6
|
import type { ReanimatedHTMLElement } from '../../ReanimatedModule/js-reanimated';
|
|
6
7
|
import { _updatePropsJS } from '../../ReanimatedModule/js-reanimated';
|
|
@@ -14,13 +15,18 @@ import type {
|
|
|
14
15
|
AnimationConfig,
|
|
15
16
|
AnimationNames,
|
|
16
17
|
CustomConfig,
|
|
18
|
+
EasingType,
|
|
17
19
|
KeyframeDefinitions,
|
|
18
20
|
} from './config';
|
|
19
21
|
import { Animations, TransitionType } from './config';
|
|
20
22
|
import { TransitionGenerator } from './createAnimation';
|
|
21
23
|
import { scheduleAnimationCleanup } from './domUtils';
|
|
22
24
|
import type { WebEasingsNames } from './Easing.web';
|
|
23
|
-
import {
|
|
25
|
+
import {
|
|
26
|
+
getEasingByName,
|
|
27
|
+
maybeGetBezierEasing,
|
|
28
|
+
WebEasings,
|
|
29
|
+
} from './Easing.web';
|
|
24
30
|
import { prepareCurvedTransition } from './transition/Curved.web';
|
|
25
31
|
|
|
26
32
|
function getEasingFromConfig(config: CustomConfig): string {
|
|
@@ -28,15 +34,25 @@ function getEasingFromConfig(config: CustomConfig): string {
|
|
|
28
34
|
return getEasingByName('linear');
|
|
29
35
|
}
|
|
30
36
|
|
|
31
|
-
const easingName = config.easingV[EasingNameSymbol];
|
|
37
|
+
const easingName = (config.easingV as EasingType)[EasingNameSymbol];
|
|
32
38
|
|
|
33
|
-
if (
|
|
34
|
-
|
|
39
|
+
if (easingName in WebEasings) {
|
|
40
|
+
return getEasingByName(easingName as WebEasingsNames);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const bezierEasing = maybeGetBezierEasing(
|
|
44
|
+
config.easingV as EasingFunctionFactory
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
if (!bezierEasing) {
|
|
48
|
+
logger.warn(
|
|
49
|
+
`Selected easing is not currently supported on web. Using linear easing instead.`
|
|
50
|
+
);
|
|
35
51
|
|
|
36
52
|
return getEasingByName('linear');
|
|
37
53
|
}
|
|
38
54
|
|
|
39
|
-
return
|
|
55
|
+
return bezierEasing;
|
|
40
56
|
}
|
|
41
57
|
|
|
42
58
|
function getRandomDelay(maxDelay = 1000) {
|
|
@@ -173,27 +189,35 @@ export function setElementAnimation(
|
|
|
173
189
|
configureAnimation();
|
|
174
190
|
}
|
|
175
191
|
|
|
192
|
+
const maybeRemoveElement = () => {
|
|
193
|
+
if (element.reanimatedDummy && parent?.contains(element)) {
|
|
194
|
+
element.removedAfterAnimation = true;
|
|
195
|
+
parent.removeChild(element);
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
let wasCallbackCalled = false;
|
|
200
|
+
const maybeCallCallback = (finished: boolean) => {
|
|
201
|
+
if (!wasCallbackCalled && animationConfig.callback) {
|
|
202
|
+
animationConfig.callback(finished);
|
|
203
|
+
wasCallbackCalled = true;
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
|
|
176
207
|
element.onanimationend = () => {
|
|
177
208
|
if (shouldSavePosition) {
|
|
178
209
|
saveSnapshot(element);
|
|
179
210
|
}
|
|
180
211
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
parent.removeChild(element);
|
|
184
|
-
}
|
|
212
|
+
maybeRemoveElement();
|
|
213
|
+
maybeCallCallback(true);
|
|
185
214
|
|
|
186
|
-
animationConfig.callback?.(true);
|
|
187
215
|
element.removeEventListener('animationcancel', animationCancelHandler);
|
|
188
216
|
};
|
|
189
217
|
|
|
190
218
|
const animationCancelHandler = () => {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
if (parent?.contains(element)) {
|
|
194
|
-
element.removedAfterAnimation = true;
|
|
195
|
-
parent.removeChild(element);
|
|
196
|
-
}
|
|
219
|
+
maybeRemoveElement();
|
|
220
|
+
maybeCallCallback(false);
|
|
197
221
|
|
|
198
222
|
element.removeEventListener('animationcancel', animationCancelHandler);
|
|
199
223
|
};
|
|
@@ -212,6 +236,9 @@ export function setElementAnimation(
|
|
|
212
236
|
if (shouldSavePosition) {
|
|
213
237
|
setElementPosition(element, snapshots.get(element)!);
|
|
214
238
|
}
|
|
239
|
+
|
|
240
|
+
maybeRemoveElement();
|
|
241
|
+
maybeCallCallback(false);
|
|
215
242
|
});
|
|
216
243
|
}
|
|
217
244
|
}
|
|
@@ -301,6 +328,20 @@ export function handleExitingAnimation(
|
|
|
301
328
|
element.style.animationName = '';
|
|
302
329
|
dummy.style.animationName = '';
|
|
303
330
|
|
|
331
|
+
// Moving elements in DOM resets their scroll positions
|
|
332
|
+
// so we memorize them here and restore after
|
|
333
|
+
const scrollPositions = new Map<Element, { top: number; left: number }>();
|
|
334
|
+
const saveScrollPosition = (node: Element) => {
|
|
335
|
+
scrollPositions.set(node, {
|
|
336
|
+
top: node.scrollTop,
|
|
337
|
+
left: node.scrollLeft,
|
|
338
|
+
});
|
|
339
|
+
for (const child of Array.from(node.children)) {
|
|
340
|
+
saveScrollPosition(child);
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
saveScrollPosition(element);
|
|
344
|
+
|
|
304
345
|
// After cloning the element, we want to move all children from original element to its clone. This is because original element
|
|
305
346
|
// will be unmounted, therefore when this code executes in child component, parent will be either empty or removed soon.
|
|
306
347
|
// Using element.cloneNode(true) doesn't solve the problem, because it creates copy of children and we won't be able to set their animations
|
|
@@ -312,6 +353,18 @@ export function handleExitingAnimation(
|
|
|
312
353
|
|
|
313
354
|
parent?.appendChild(dummy);
|
|
314
355
|
|
|
356
|
+
const restoreScrollPosition = (node: Element) => {
|
|
357
|
+
const scrollPosition = scrollPositions.get(node === dummy ? element : node);
|
|
358
|
+
if (scrollPosition) {
|
|
359
|
+
node.scrollTop = scrollPosition.top;
|
|
360
|
+
node.scrollLeft = scrollPosition.left;
|
|
361
|
+
}
|
|
362
|
+
for (const child of Array.from(node.children)) {
|
|
363
|
+
restoreScrollPosition(child);
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
restoreScrollPosition(dummy);
|
|
367
|
+
|
|
315
368
|
const snapshot = snapshots.get(element)!;
|
|
316
369
|
|
|
317
370
|
const scrollOffsets = getElementScrollValue(element);
|
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
ReduceMotion,
|
|
5
5
|
StyleProps,
|
|
6
6
|
} from '../../commonTypes';
|
|
7
|
+
import type { EasingFunctionFactory } from '../../Easing';
|
|
7
8
|
import {
|
|
8
9
|
BounceIn,
|
|
9
10
|
BounceInData,
|
|
@@ -62,13 +63,13 @@ export interface AnimationConfig {
|
|
|
62
63
|
reversed: boolean;
|
|
63
64
|
}
|
|
64
65
|
|
|
65
|
-
interface EasingType {
|
|
66
|
+
export interface EasingType {
|
|
66
67
|
(): number;
|
|
67
68
|
[EasingNameSymbol: symbol]: string;
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
export interface CustomConfig {
|
|
71
|
-
easingV?: EasingType;
|
|
72
|
+
easingV?: EasingType | EasingFunctionFactory;
|
|
72
73
|
easingXV?: EasingType;
|
|
73
74
|
easingYV?: EasingType;
|
|
74
75
|
durationV?: number;
|
|
@@ -118,7 +118,7 @@ function removeWebAnimation(
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
const timeoutScale =
|
|
121
|
+
const timeoutScale = 5; // We use this value to enlarge timeout duration. It can prove useful if animation lags.
|
|
122
122
|
const frameDurationMs = 16; // Just an approximation.
|
|
123
123
|
const minimumFrames = 10;
|
|
124
124
|
|
package/src/mock.ts
CHANGED
|
@@ -310,7 +310,7 @@ const core = {
|
|
|
310
310
|
createWorkletRuntime: NOOP,
|
|
311
311
|
runOnRuntime: NOOP,
|
|
312
312
|
makeMutable: ID,
|
|
313
|
-
|
|
313
|
+
createSerializable: ID,
|
|
314
314
|
isReanimated3: () => false,
|
|
315
315
|
// isConfigured: ADD ME IF NEEDED
|
|
316
316
|
enableLayoutAnimations: NOOP,
|
package/src/mutables.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
import type { Synchronizable } from 'react-native-worklets';
|
|
2
3
|
import {
|
|
4
|
+
createSerializable,
|
|
5
|
+
createSynchronizable,
|
|
3
6
|
executeOnUIRuntimeSync,
|
|
4
|
-
makeShareableCloneRecursive,
|
|
5
7
|
runOnUI,
|
|
6
|
-
|
|
8
|
+
serializableMappingCache,
|
|
7
9
|
} from 'react-native-worklets';
|
|
8
10
|
|
|
9
11
|
import { IS_JEST, logger, ReanimatedError, SHOULD_BE_USE_WEB } from './common';
|
|
10
12
|
import type { Mutable } from './commonTypes';
|
|
13
|
+
import { getStaticFeatureFlag } from './featureFlags';
|
|
11
14
|
import { isFirstReactRender, isReactRendering } from './reactUtils';
|
|
12
15
|
import { valueSetter } from './valueSetter';
|
|
13
16
|
|
|
@@ -94,10 +97,15 @@ function hideInternalValueProp<Value>(mutable: PartialMutable<Value>) {
|
|
|
94
97
|
});
|
|
95
98
|
}
|
|
96
99
|
|
|
97
|
-
|
|
100
|
+
// eslint-disable-next-line camelcase
|
|
101
|
+
function experimental_makeMutableUI<Value>(
|
|
102
|
+
initial: Value,
|
|
103
|
+
dirtyFlag: Synchronizable<boolean>
|
|
104
|
+
): Mutable<Value> {
|
|
98
105
|
'worklet';
|
|
99
106
|
const listeners = new Map<number, Listener<Value>>();
|
|
100
107
|
let value = initial;
|
|
108
|
+
let isDirty = false;
|
|
101
109
|
|
|
102
110
|
const mutable: PartialMutable<Value> = {
|
|
103
111
|
get value() {
|
|
@@ -110,6 +118,9 @@ export function makeMutableUI<Value>(initial: Value): Mutable<Value> {
|
|
|
110
118
|
return value;
|
|
111
119
|
},
|
|
112
120
|
set _value(newValue: Value) {
|
|
121
|
+
if (!isDirty) {
|
|
122
|
+
this.setDirty!(true);
|
|
123
|
+
}
|
|
113
124
|
value = newValue;
|
|
114
125
|
listeners.forEach((listener) => {
|
|
115
126
|
listener(newValue);
|
|
@@ -128,6 +139,10 @@ export function makeMutableUI<Value>(initial: Value): Mutable<Value> {
|
|
|
128
139
|
removeListener: (id: number) => {
|
|
129
140
|
listeners.delete(id);
|
|
130
141
|
},
|
|
142
|
+
setDirty: (dirty: boolean) => {
|
|
143
|
+
dirtyFlag.setBlocking(dirty);
|
|
144
|
+
isDirty = dirty;
|
|
145
|
+
},
|
|
131
146
|
|
|
132
147
|
_animation: null,
|
|
133
148
|
_isReanimatedSharedValue: true,
|
|
@@ -139,11 +154,128 @@ export function makeMutableUI<Value>(initial: Value): Mutable<Value> {
|
|
|
139
154
|
return mutable as Mutable<Value>;
|
|
140
155
|
}
|
|
141
156
|
|
|
157
|
+
// eslint-disable-next-line camelcase
|
|
158
|
+
export function legacy_makeMutableUI<Value>(initial: Value): Mutable<Value> {
|
|
159
|
+
'worklet';
|
|
160
|
+
const listeners = new Map<number, Listener<Value>>();
|
|
161
|
+
let value = initial;
|
|
162
|
+
|
|
163
|
+
const mutable: PartialMutable<Value> = {
|
|
164
|
+
get value() {
|
|
165
|
+
return value;
|
|
166
|
+
},
|
|
167
|
+
set value(newValue) {
|
|
168
|
+
valueSetter(mutable as Mutable<Value>, newValue);
|
|
169
|
+
},
|
|
170
|
+
get _value(): Value {
|
|
171
|
+
return value;
|
|
172
|
+
},
|
|
173
|
+
set _value(newValue: Value) {
|
|
174
|
+
value = newValue;
|
|
175
|
+
listeners.forEach((listener) => {
|
|
176
|
+
listener(newValue);
|
|
177
|
+
});
|
|
178
|
+
},
|
|
179
|
+
modify: (modifier, forceUpdate = true) => {
|
|
180
|
+
valueSetter(
|
|
181
|
+
mutable as Mutable<Value>,
|
|
182
|
+
modifier !== undefined ? modifier(value) : value,
|
|
183
|
+
forceUpdate
|
|
184
|
+
);
|
|
185
|
+
},
|
|
186
|
+
addListener: (id: number, listener: Listener<Value>) => {
|
|
187
|
+
listeners.set(id, listener);
|
|
188
|
+
},
|
|
189
|
+
removeListener: (id: number) => {
|
|
190
|
+
listeners.delete(id);
|
|
191
|
+
},
|
|
192
|
+
|
|
193
|
+
_animation: null,
|
|
194
|
+
_isReanimatedSharedValue: true,
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
hideInternalValueProp(mutable);
|
|
198
|
+
addCompilerSafeGetAndSet(mutable);
|
|
199
|
+
|
|
200
|
+
return mutable as Mutable<Value>;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
const USE_SYNCHRONIZABLE_FOR_MUTABLES = getStaticFeatureFlag(
|
|
204
|
+
'USE_SYNCHRONIZABLE_FOR_MUTABLES'
|
|
205
|
+
);
|
|
206
|
+
|
|
207
|
+
// eslint-disable-next-line camelcase
|
|
208
|
+
function experimental_makeMutableNative<Value>(initial: Value): Mutable<Value> {
|
|
209
|
+
let latest = initial;
|
|
210
|
+
const dirtyFlag = createSynchronizable(false);
|
|
211
|
+
const handle = createSerializable({
|
|
212
|
+
__init: () => {
|
|
213
|
+
'worklet';
|
|
214
|
+
return experimental_makeMutableUI(initial, dirtyFlag);
|
|
215
|
+
},
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
const mutable: PartialMutable<Value> = {
|
|
219
|
+
get value(): Value {
|
|
220
|
+
checkInvalidReadDuringRender();
|
|
221
|
+
if (dirtyFlag.getBlocking()) {
|
|
222
|
+
const uiValueGetter = executeOnUIRuntimeSync((sv: Mutable<Value>) => {
|
|
223
|
+
sv.setDirty!(false);
|
|
224
|
+
return sv.value;
|
|
225
|
+
});
|
|
226
|
+
latest = uiValueGetter(mutable as Mutable<Value>);
|
|
227
|
+
}
|
|
228
|
+
return latest;
|
|
229
|
+
},
|
|
230
|
+
set value(newValue) {
|
|
231
|
+
checkInvalidWriteDuringRender();
|
|
232
|
+
runOnUI(() => {
|
|
233
|
+
mutable.value = newValue;
|
|
234
|
+
})();
|
|
235
|
+
},
|
|
236
|
+
|
|
237
|
+
get _value(): Value {
|
|
238
|
+
throw new ReanimatedError(
|
|
239
|
+
'Reading from `_value` directly is only possible on the UI runtime. Perhaps you passed an Animated Style to a non-animated component?'
|
|
240
|
+
);
|
|
241
|
+
},
|
|
242
|
+
set _value(_newValue: Value) {
|
|
243
|
+
throw new ReanimatedError(
|
|
244
|
+
'Setting `_value` directly is only possible on the UI runtime. Perhaps you want to assign to `value` instead?'
|
|
245
|
+
);
|
|
246
|
+
},
|
|
247
|
+
|
|
248
|
+
modify: (modifier, forceUpdate = true) => {
|
|
249
|
+
runOnUI(() => {
|
|
250
|
+
mutable.modify(modifier, forceUpdate);
|
|
251
|
+
})();
|
|
252
|
+
},
|
|
253
|
+
addListener: () => {
|
|
254
|
+
throw new ReanimatedError(
|
|
255
|
+
'Adding listeners is only possible on the UI runtime.'
|
|
256
|
+
);
|
|
257
|
+
},
|
|
258
|
+
removeListener: () => {
|
|
259
|
+
throw new ReanimatedError(
|
|
260
|
+
'Removing listeners is only possible on the UI runtime.'
|
|
261
|
+
);
|
|
262
|
+
},
|
|
263
|
+
|
|
264
|
+
_isReanimatedSharedValue: true,
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
hideInternalValueProp(mutable);
|
|
268
|
+
addCompilerSafeGetAndSet(mutable);
|
|
269
|
+
|
|
270
|
+
serializableMappingCache.set(mutable, handle);
|
|
271
|
+
return mutable as Mutable<Value>;
|
|
272
|
+
}
|
|
273
|
+
|
|
142
274
|
function makeMutableNative<Value>(initial: Value): Mutable<Value> {
|
|
143
|
-
const handle =
|
|
275
|
+
const handle = createSerializable({
|
|
144
276
|
__init: () => {
|
|
145
277
|
'worklet';
|
|
146
|
-
return
|
|
278
|
+
return legacy_makeMutableUI(initial);
|
|
147
279
|
},
|
|
148
280
|
});
|
|
149
281
|
|
|
@@ -195,7 +327,7 @@ function makeMutableNative<Value>(initial: Value): Mutable<Value> {
|
|
|
195
327
|
hideInternalValueProp(mutable);
|
|
196
328
|
addCompilerSafeGetAndSet(mutable);
|
|
197
329
|
|
|
198
|
-
|
|
330
|
+
serializableMappingCache.set(mutable, handle);
|
|
199
331
|
return mutable as Mutable<Value>;
|
|
200
332
|
}
|
|
201
333
|
|
|
@@ -256,7 +388,10 @@ function makeMutableWeb<Value>(initial: Value): Mutable<Value> {
|
|
|
256
388
|
|
|
257
389
|
export const makeMutable = SHOULD_BE_USE_WEB
|
|
258
390
|
? makeMutableWeb
|
|
259
|
-
:
|
|
391
|
+
: USE_SYNCHRONIZABLE_FOR_MUTABLES
|
|
392
|
+
? // eslint-disable-next-line camelcase
|
|
393
|
+
experimental_makeMutableNative
|
|
394
|
+
: makeMutableNative;
|
|
260
395
|
|
|
261
396
|
interface JestMutable<TValue> extends Mutable<TValue> {
|
|
262
397
|
toJSON: () => string;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
import { ReanimatedError } from '../common';
|
|
5
|
-
import type {
|
|
5
|
+
import type { WrapperRef } from '../commonTypes';
|
|
6
|
+
import type { IAnimatedComponentInternalBase } from '../createAnimatedComponent/commonTypes';
|
|
6
7
|
|
|
7
8
|
export type HostInstance = {
|
|
8
9
|
__internalInstanceHandle?: Record<string, unknown>;
|
|
@@ -45,11 +46,11 @@ function resolveFindHostInstance_DEPRECATED() {
|
|
|
45
46
|
|
|
46
47
|
let findHostInstance_DEPRECATED: (ref: unknown) => HostInstance;
|
|
47
48
|
export function findHostInstance(
|
|
48
|
-
|
|
49
|
+
ref: IAnimatedComponentInternalBase | WrapperRef
|
|
49
50
|
): HostInstance {
|
|
50
51
|
// Fast path for native refs
|
|
51
52
|
const hostInstance = findHostInstanceFastPath(
|
|
52
|
-
(
|
|
53
|
+
(ref as IAnimatedComponentInternalBase)._componentRef as HostInstance
|
|
53
54
|
);
|
|
54
55
|
if (hostInstance !== undefined) {
|
|
55
56
|
return hostInstance;
|
|
@@ -63,8 +64,8 @@ export function findHostInstance(
|
|
|
63
64
|
a valid React ref.
|
|
64
65
|
*/
|
|
65
66
|
return findHostInstance_DEPRECATED(
|
|
66
|
-
(
|
|
67
|
-
? (
|
|
68
|
-
:
|
|
67
|
+
(ref as IAnimatedComponentInternalBase)._hasAnimatedRef
|
|
68
|
+
? (ref as IAnimatedComponentInternalBase)._componentRef
|
|
69
|
+
: ref
|
|
69
70
|
);
|
|
70
71
|
}
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
import validateWorkletsVersion from 'react-native-reanimated/scripts/validate-worklets-version';
|
|
5
5
|
|
|
6
6
|
import { ReanimatedError } from '../common/errors';
|
|
7
|
+
import { jsVersion as reanimatedVersion } from './jsVersion';
|
|
7
8
|
|
|
8
9
|
export function assertWorkletsVersion() {
|
|
9
|
-
const result = validateWorkletsVersion();
|
|
10
|
+
const result = validateWorkletsVersion(reanimatedVersion);
|
|
10
11
|
|
|
11
12
|
if (!result.ok) {
|
|
12
13
|
throw new ReanimatedError(result.message);
|