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
|
@@ -64,10 +64,9 @@ def find_config()
|
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
def assert_minimal_react_native_version(config)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
raise "[Reanimated] Unsupported React Native version. Please use React Native 0.#{minimalReactNativeVersion} or newer."
|
|
67
|
+
validate_react_native_version_script = File.expand_path(File.join(__dir__, 'validate-react-native-version.js'))
|
|
68
|
+
unless system("node \"#{validate_react_native_version_script}\" #{config[:react_native_version]}")
|
|
69
|
+
raise "[Reanimated] React Native version is not compatible with Reanimated"
|
|
71
70
|
end
|
|
72
71
|
end
|
|
73
72
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const semverSatisfies = require('semver/functions/satisfies');
|
|
4
|
+
const semverPrerelease = require('semver/functions/prerelease');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
|
|
7
|
+
const packageJsonPath = path.resolve(__dirname, '../package.json');
|
|
8
|
+
const packageJson = require(packageJsonPath);
|
|
9
|
+
const reanimatedVersion = packageJson.version;
|
|
10
|
+
const compatibilityFile = require('../compatibility.json');
|
|
11
|
+
|
|
12
|
+
const reactNativeVersion = process.argv[2];
|
|
13
|
+
const supportedRNVersions = [];
|
|
14
|
+
|
|
15
|
+
if (semverPrerelease(reactNativeVersion)) {
|
|
16
|
+
// Don't perform any checks for pre-release versions, like nightlies or
|
|
17
|
+
// feature previews. The user knows what they're doing.
|
|
18
|
+
process.exit(0);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
for (const key in compatibilityFile) {
|
|
22
|
+
if (semverSatisfies(reanimatedVersion, key)) {
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
supportedRNVersions.push(...compatibilityFile[key]['react-native']);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// If user uses a version of Reanimated that is not listed in the compatibility file, we skip the check
|
|
29
|
+
if (supportedRNVersions.length === 0) {
|
|
30
|
+
process.exit(0);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
for (const version of supportedRNVersions) {
|
|
34
|
+
if (semverSatisfies(reactNativeVersion, `${version}.x`)) {
|
|
35
|
+
process.exit(0);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// eslint-disable-next-line reanimated/use-logger
|
|
40
|
+
console.error(
|
|
41
|
+
`[Reanimated] React Native ${reactNativeVersion} version is not compatible with Reanimated ${reanimatedVersion}`
|
|
42
|
+
);
|
|
43
|
+
process.exit(1);
|
|
@@ -2,9 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
// We don't use this script in runtime since `process` might not be available.
|
|
4
4
|
|
|
5
|
+
const path = require('path');
|
|
6
|
+
const packageJsonPath = path.resolve(__dirname, '../package.json');
|
|
7
|
+
const packageJson = require(packageJsonPath);
|
|
8
|
+
const reanimatedVersion = packageJson.version;
|
|
9
|
+
|
|
5
10
|
const validateVersion = require('./validate-worklets-version');
|
|
6
11
|
|
|
7
|
-
const result = validateVersion();
|
|
12
|
+
const result = validateVersion(reanimatedVersion);
|
|
8
13
|
if (!result.ok) {
|
|
9
14
|
// eslint-disable-next-line reanimated/use-logger
|
|
10
15
|
console.error('[Reanimated] ' + result.message);
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
const semverSatisfies = require('semver/functions/satisfies');
|
|
4
4
|
const semverPrerelease = require('semver/functions/prerelease');
|
|
5
5
|
const expectedVersion = require('./worklets-version.json');
|
|
6
|
+
const compatibilityFile = require('../compatibility.json');
|
|
6
7
|
|
|
7
8
|
/** @returns {{ ok: boolean; message?: string }} */
|
|
8
|
-
function validateVersion() {
|
|
9
|
+
function validateVersion(reanimatedVersion) {
|
|
9
10
|
let workletsVersion;
|
|
10
|
-
|
|
11
11
|
try {
|
|
12
12
|
const { version } = require('react-native-worklets/package.json');
|
|
13
13
|
workletsVersion = version;
|
|
@@ -19,7 +19,9 @@ function validateVersion() {
|
|
|
19
19
|
expectedVersion.min +
|
|
20
20
|
' and ' +
|
|
21
21
|
expectedVersion.max +
|
|
22
|
-
' to use Reanimated
|
|
22
|
+
' to use Reanimated ' +
|
|
23
|
+
reanimatedVersion +
|
|
24
|
+
'.',
|
|
23
25
|
};
|
|
24
26
|
}
|
|
25
27
|
|
|
@@ -31,17 +33,30 @@ function validateVersion() {
|
|
|
31
33
|
return { ok: true };
|
|
32
34
|
}
|
|
33
35
|
|
|
34
|
-
const
|
|
36
|
+
const supportedWorkletsVersions = [];
|
|
35
37
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
for (const key in compatibilityFile) {
|
|
39
|
+
if (semverSatisfies(reanimatedVersion, key)) {
|
|
40
|
+
// @ts-ignore
|
|
41
|
+
supportedWorkletsVersions.push(
|
|
42
|
+
...compatibilityFile[key]['react-native-worklets']
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (supportedWorkletsVersions.length === 0) {
|
|
48
|
+
return { ok: true };
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
for (const version of supportedWorkletsVersions) {
|
|
52
|
+
if (semverSatisfies(workletsVersion, version)) {
|
|
53
|
+
return { ok: true };
|
|
54
|
+
}
|
|
41
55
|
}
|
|
42
56
|
|
|
43
57
|
return {
|
|
44
|
-
ok:
|
|
58
|
+
ok: false,
|
|
59
|
+
message: `Invalid version of \`react-native-worklets\`: "${workletsVersion}". Expected the version to be in inclusive range "${supportedWorkletsVersions.join(', ')}". Please install a compatible version of \`react-native-worklets\`.`,
|
|
45
60
|
};
|
|
46
61
|
}
|
|
47
62
|
|
package/src/Animated.ts
CHANGED
|
@@ -1,22 +1,4 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
import type {
|
|
3
|
-
AnimatedTransform as _AnimatedTransform,
|
|
4
|
-
AnimateStyle as _AnimateStyle,
|
|
5
|
-
EasingFunction as _EasingFunction,
|
|
6
|
-
SharedValue as _SharedValue,
|
|
7
|
-
StylesOrDefault as _StylesOrDefault,
|
|
8
|
-
} from './commonTypes';
|
|
9
|
-
import type { FlatListPropsWithLayout as _FlatListPropsWithLayout } from './component/FlatList';
|
|
10
|
-
import type { AnimatedScrollViewProps as _AnimatedScrollViewProps } from './component/ScrollView';
|
|
11
|
-
import type {
|
|
12
|
-
Adaptable as _Adaptable,
|
|
13
|
-
AdaptTransforms as _AdaptTransforms,
|
|
14
|
-
AnimateProps as _AnimateProps,
|
|
15
|
-
TransformStyleTypes as _TransformStyleTypes,
|
|
16
|
-
} from './helperTypes';
|
|
17
|
-
import type { DerivedValue as _DerivedValue } from './hook/useDerivedValue';
|
|
18
|
-
import type { Extrapolate as _Extrapolate } from './interpolateColor';
|
|
19
|
-
|
|
20
2
|
export { ReanimatedFlatList as FlatList } from './component/FlatList';
|
|
21
3
|
export { AnimatedImage as Image } from './component/Image';
|
|
22
4
|
export { AnimatedScrollView as ScrollView } from './component/ScrollView';
|
|
@@ -27,69 +9,3 @@ export {
|
|
|
27
9
|
addWhitelistedUIProps,
|
|
28
10
|
} from './ConfigHelper';
|
|
29
11
|
export { createAnimatedComponent } from './createAnimatedComponent';
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated Please import `Extrapolate` directly from
|
|
32
|
-
* `react-native-reanimated` instead of `Animated` namespace.
|
|
33
|
-
*/
|
|
34
|
-
export type Extrapolate = typeof _Extrapolate;
|
|
35
|
-
/**
|
|
36
|
-
* @deprecated Please import `SharedValue` directly from
|
|
37
|
-
* `react-native-reanimated` instead of `Animated` namespace.
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
export type SharedValue<T> = _SharedValue<T>;
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated Please import `DerivedValue` directly from
|
|
43
|
-
* `react-native-reanimated` instead of `Animated` namespace.
|
|
44
|
-
*/
|
|
45
|
-
export type DerivedValue<T> = _DerivedValue<T>;
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated Please import `Adaptable` directly from `react-native-reanimated`
|
|
48
|
-
* instead of `Animated` namespace.
|
|
49
|
-
*/
|
|
50
|
-
export type Adaptable<T> = _Adaptable<T>;
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated Please import `TransformStyleTypes` directly from
|
|
53
|
-
* `react-native-reanimated` instead of `Animated` namespace.
|
|
54
|
-
*/
|
|
55
|
-
export type TransformStyleTypes = _TransformStyleTypes;
|
|
56
|
-
/**
|
|
57
|
-
* @deprecated Please import `AdaptTransforms` directly from
|
|
58
|
-
* `react-native-reanimated` instead of `Animated` namespace.
|
|
59
|
-
*/
|
|
60
|
-
export type AdaptTransforms<T> = _AdaptTransforms<T>;
|
|
61
|
-
/**
|
|
62
|
-
* @deprecated Please import `AnimatedTransform` directly from
|
|
63
|
-
* `react-native-reanimated` instead of `Animated` namespace.
|
|
64
|
-
*/
|
|
65
|
-
export type AnimatedTransform = _AnimatedTransform;
|
|
66
|
-
/**
|
|
67
|
-
* @deprecated Please import `AnimateStyle` directly from
|
|
68
|
-
* `react-native-reanimated` instead of `Animated` namespace.
|
|
69
|
-
*/
|
|
70
|
-
export type AnimateStyle<S> = _AnimateStyle<S>;
|
|
71
|
-
/**
|
|
72
|
-
* @deprecated Please import `StylesOrDefault` directly from
|
|
73
|
-
* `react-native-reanimated` instead of `Animated` namespace.
|
|
74
|
-
*/
|
|
75
|
-
export type StylesOrDefault<S> = _StylesOrDefault<S>;
|
|
76
|
-
/**
|
|
77
|
-
* @deprecated Please import `AnimateProps` directly from
|
|
78
|
-
* `react-native-reanimated` instead of `Animated` namespace.
|
|
79
|
-
*/
|
|
80
|
-
export type AnimateProps<P extends object> = _AnimateProps<P>;
|
|
81
|
-
/**
|
|
82
|
-
* @deprecated Please import `EasingFunction` directly from
|
|
83
|
-
* `react-native-reanimated` instead of `Animated` namespace.
|
|
84
|
-
*/
|
|
85
|
-
export type EasingFunction = _EasingFunction;
|
|
86
|
-
/**
|
|
87
|
-
* @deprecated Please import `AnimatedScrollViewProps` directly from
|
|
88
|
-
* `react-native-reanimated` instead of `Animated` namespace.
|
|
89
|
-
*/
|
|
90
|
-
export type AnimatedScrollViewProps = _AnimatedScrollViewProps;
|
|
91
|
-
/**
|
|
92
|
-
* @deprecated Please import `FlatListPropsWithLayout` directly from
|
|
93
|
-
* `react-native-reanimated` instead of `Animated` namespace.
|
|
94
|
-
*/
|
|
95
|
-
export type FlatListPropsWithLayout<T> = _FlatListPropsWithLayout<T>;
|
package/src/Colors.ts
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/* eslint no-bitwise: 0 */
|
|
9
|
-
import { makeShareable } from 'react-native-worklets';
|
|
10
9
|
|
|
11
10
|
interface RGB {
|
|
12
11
|
r: number;
|
|
@@ -169,7 +168,7 @@ export function clampRGBA(RGBA: ParsedColorArray): void {
|
|
|
169
168
|
}
|
|
170
169
|
}
|
|
171
170
|
|
|
172
|
-
const names: Record<string, number> =
|
|
171
|
+
const names: Record<string, number> = {
|
|
173
172
|
transparent: 0x00000000,
|
|
174
173
|
|
|
175
174
|
/* spell-checker: disable */
|
|
@@ -324,10 +323,10 @@ const names: Record<string, number> = makeShareable({
|
|
|
324
323
|
yellow: 0xffff00ff,
|
|
325
324
|
yellowgreen: 0x9acd32ff,
|
|
326
325
|
/* spell-checker: enable */
|
|
327
|
-
}
|
|
326
|
+
};
|
|
328
327
|
|
|
329
328
|
// copied from react-native/Libraries/Components/View/ReactNativeStyleAttributes
|
|
330
|
-
export const ColorProperties =
|
|
329
|
+
export const ColorProperties = [
|
|
331
330
|
'backgroundColor',
|
|
332
331
|
'borderBottomColor',
|
|
333
332
|
'borderColor',
|
|
@@ -353,7 +352,7 @@ export const ColorProperties = makeShareable([
|
|
|
353
352
|
'lightingColor',
|
|
354
353
|
'stopColor',
|
|
355
354
|
'stroke',
|
|
356
|
-
]
|
|
355
|
+
];
|
|
357
356
|
|
|
358
357
|
export function normalizeColor(color: unknown): number | null {
|
|
359
358
|
'worklet';
|
package/src/Easing.ts
CHANGED
|
@@ -48,13 +48,8 @@ import type { EasingFunction } from './commonTypes';
|
|
|
48
48
|
* - [`out`](docs/easing.html#out) runs an easing function backwards
|
|
49
49
|
*/
|
|
50
50
|
|
|
51
|
-
/** @deprecated Please use {@link EasingFunction} type instead. */
|
|
52
|
-
export type EasingFn = EasingFunction;
|
|
53
|
-
|
|
54
51
|
export type EasingFunctionFactory = { factory: () => EasingFunction };
|
|
55
52
|
|
|
56
|
-
/** @deprecated Please use {@link EasingFunctionFactory} type instead. */
|
|
57
|
-
export type EasingFactoryFn = EasingFunctionFactory;
|
|
58
53
|
/**
|
|
59
54
|
* A linear function, `f(t) = t`. Position correlates to elapsed time one to
|
|
60
55
|
* one.
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
2
2
|
'use strict';
|
|
3
|
-
import type React from 'react';
|
|
4
3
|
import type {
|
|
5
4
|
IWorkletsModule,
|
|
6
|
-
|
|
5
|
+
SerializableRef,
|
|
7
6
|
WorkletFunction,
|
|
8
7
|
} from 'react-native-worklets';
|
|
9
8
|
import { executeOnUIRuntimeSync, WorkletsModule } from 'react-native-worklets';
|
|
@@ -19,12 +18,13 @@ import type {
|
|
|
19
18
|
StyleProps,
|
|
20
19
|
Value3D,
|
|
21
20
|
ValueRotation,
|
|
21
|
+
WrapperRef,
|
|
22
22
|
} from '../commonTypes';
|
|
23
23
|
import type {
|
|
24
24
|
CSSAnimationUpdates,
|
|
25
25
|
NormalizedCSSAnimationKeyframesConfig,
|
|
26
26
|
NormalizedCSSTransitionConfig,
|
|
27
|
-
} from '../css/
|
|
27
|
+
} from '../css/native';
|
|
28
28
|
import { getShadowNodeWrapperFromRef } from '../fabricUtils';
|
|
29
29
|
import { checkCppVersion } from '../platform-specific/checkCppVersion';
|
|
30
30
|
import { jsVersion } from '../platform-specific/jsVersion';
|
|
@@ -102,7 +102,7 @@ See https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooti
|
|
|
102
102
|
sensorType: number,
|
|
103
103
|
interval: number,
|
|
104
104
|
iosReferenceFrame: number,
|
|
105
|
-
handler:
|
|
105
|
+
handler: SerializableRef<(data: Value3D | ValueRotation) => void>
|
|
106
106
|
) {
|
|
107
107
|
return this.#reanimatedModuleProxy.registerSensor(
|
|
108
108
|
sensorType,
|
|
@@ -117,7 +117,7 @@ See https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooti
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
registerEventHandler<T>(
|
|
120
|
-
eventHandler:
|
|
120
|
+
eventHandler: SerializableRef<T>,
|
|
121
121
|
eventName: string,
|
|
122
122
|
emitterReactTag: number
|
|
123
123
|
) {
|
|
@@ -135,12 +135,10 @@ See https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooti
|
|
|
135
135
|
getViewProp<T>(
|
|
136
136
|
viewTag: number,
|
|
137
137
|
propName: string,
|
|
138
|
-
component:
|
|
138
|
+
component: WrapperRef, // required on Fabric
|
|
139
139
|
callback?: (result: T) => void
|
|
140
140
|
) {
|
|
141
|
-
const shadowNodeWrapper = getShadowNodeWrapperFromRef(
|
|
142
|
-
component as React.Component
|
|
143
|
-
);
|
|
141
|
+
const shadowNodeWrapper = getShadowNodeWrapperFromRef(component);
|
|
144
142
|
return this.#reanimatedModuleProxy.getViewProp(
|
|
145
143
|
shadowNodeWrapper,
|
|
146
144
|
propName,
|
|
@@ -163,12 +161,16 @@ See https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooti
|
|
|
163
161
|
);
|
|
164
162
|
}
|
|
165
163
|
|
|
164
|
+
getStaticFeatureFlag(name: string): boolean {
|
|
165
|
+
return this.#reanimatedModuleProxy.getStaticFeatureFlag(name);
|
|
166
|
+
}
|
|
167
|
+
|
|
166
168
|
setDynamicFeatureFlag(name: string, value: boolean) {
|
|
167
169
|
this.#reanimatedModuleProxy.setDynamicFeatureFlag(name, value);
|
|
168
170
|
}
|
|
169
171
|
|
|
170
172
|
subscribeForKeyboardEvents(
|
|
171
|
-
handler:
|
|
173
|
+
handler: SerializableRef<WorkletFunction>,
|
|
172
174
|
isStatusBarTranslucent: boolean,
|
|
173
175
|
isNavigationBarTranslucent: boolean
|
|
174
176
|
) {
|
|
@@ -197,16 +199,18 @@ See https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooti
|
|
|
197
199
|
|
|
198
200
|
registerCSSKeyframes(
|
|
199
201
|
animationName: string,
|
|
202
|
+
viewName: string,
|
|
200
203
|
keyframesConfig: NormalizedCSSAnimationKeyframesConfig
|
|
201
204
|
) {
|
|
202
205
|
this.#reanimatedModuleProxy.registerCSSKeyframes(
|
|
203
206
|
animationName,
|
|
207
|
+
viewName,
|
|
204
208
|
keyframesConfig
|
|
205
209
|
);
|
|
206
210
|
}
|
|
207
211
|
|
|
208
|
-
unregisterCSSKeyframes(animationName: string) {
|
|
209
|
-
this.#reanimatedModuleProxy.unregisterCSSKeyframes(animationName);
|
|
212
|
+
unregisterCSSKeyframes(animationName: string, viewName: string) {
|
|
213
|
+
this.#reanimatedModuleProxy.unregisterCSSKeyframes(animationName, viewName);
|
|
210
214
|
}
|
|
211
215
|
|
|
212
216
|
applyCSSAnimations(
|
|
@@ -248,6 +252,9 @@ See https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooti
|
|
|
248
252
|
class DummyReanimatedModuleProxy implements ReanimatedModuleProxy {
|
|
249
253
|
configureLayoutAnimationBatch(): void {}
|
|
250
254
|
setShouldAnimateExitingForTag(): void {}
|
|
255
|
+
getStaticFeatureFlag(): boolean {
|
|
256
|
+
return false;
|
|
257
|
+
}
|
|
251
258
|
setDynamicFeatureFlag(): void {}
|
|
252
259
|
subscribeForKeyboardEvents(): number {
|
|
253
260
|
return -1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
import type {
|
|
3
3
|
IWorkletsModule,
|
|
4
|
-
|
|
4
|
+
SerializableRef,
|
|
5
5
|
WorkletFunction,
|
|
6
6
|
} from 'react-native-worklets';
|
|
7
7
|
import { WorkletsModule } from 'react-native-worklets';
|
|
@@ -18,13 +18,14 @@ import type {
|
|
|
18
18
|
StyleProps,
|
|
19
19
|
Value3D,
|
|
20
20
|
ValueRotation,
|
|
21
|
+
WrapperRef,
|
|
21
22
|
} from '../../commonTypes';
|
|
22
23
|
import { SensorType } from '../../commonTypes';
|
|
23
24
|
import type {
|
|
24
25
|
CSSAnimationUpdates,
|
|
25
26
|
NormalizedCSSAnimationKeyframesConfig,
|
|
26
27
|
NormalizedCSSTransitionConfig,
|
|
27
|
-
} from '../../css/
|
|
28
|
+
} from '../../css/native';
|
|
28
29
|
import { assertWorkletsVersion } from '../../platform-specific/workletsVersion';
|
|
29
30
|
import type { IReanimatedModule } from '../reanimatedModuleProxy';
|
|
30
31
|
import type { WebSensor } from './WebSensor';
|
|
@@ -51,7 +52,7 @@ class JSReanimated implements IReanimatedModule {
|
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
registerEventHandler<T>(
|
|
54
|
-
_eventHandler:
|
|
55
|
+
_eventHandler: SerializableRef<T>,
|
|
55
56
|
_eventName: string,
|
|
56
57
|
_emitterReactTag: number
|
|
57
58
|
): number {
|
|
@@ -78,7 +79,7 @@ class JSReanimated implements IReanimatedModule {
|
|
|
78
79
|
sensorType: SensorType,
|
|
79
80
|
interval: number,
|
|
80
81
|
_iosReferenceFrame: number,
|
|
81
|
-
eventHandler:
|
|
82
|
+
eventHandler: SerializableRef<(data: Value3D | ValueRotation) => void>
|
|
82
83
|
): number {
|
|
83
84
|
if (!IS_WINDOW_AVAILABLE) {
|
|
84
85
|
// the window object is unavailable when building the server portion of a site that uses SSG
|
|
@@ -122,7 +123,7 @@ class JSReanimated implements IReanimatedModule {
|
|
|
122
123
|
getSensorCallback = (
|
|
123
124
|
sensor: WebSensor,
|
|
124
125
|
sensorType: SensorType,
|
|
125
|
-
eventHandler:
|
|
126
|
+
eventHandler: SerializableRef<(data: Value3D | ValueRotation) => void>
|
|
126
127
|
) => {
|
|
127
128
|
switch (sensorType) {
|
|
128
129
|
case SensorType.ACCELEROMETER:
|
|
@@ -134,14 +135,14 @@ class JSReanimated implements IReanimatedModule {
|
|
|
134
135
|
if (this.platform === Platform.WEB_ANDROID) {
|
|
135
136
|
[x, y, z] = [-x, -y, -z];
|
|
136
137
|
}
|
|
137
|
-
// TODO TYPESCRIPT on web
|
|
138
|
+
// TODO TYPESCRIPT on web SerializableRef is the value itself so we call it directly
|
|
138
139
|
(eventHandler as any)({ x, y, z, interfaceOrientation: 0 });
|
|
139
140
|
};
|
|
140
141
|
case SensorType.GYROSCOPE:
|
|
141
142
|
case SensorType.MAGNETIC_FIELD:
|
|
142
143
|
return () => {
|
|
143
144
|
const { x, y, z } = sensor;
|
|
144
|
-
// TODO TYPESCRIPT on web
|
|
145
|
+
// TODO TYPESCRIPT on web SerializableRef is the value itself so we call it directly
|
|
145
146
|
(eventHandler as any)({ x, y, z, interfaceOrientation: 0 });
|
|
146
147
|
};
|
|
147
148
|
case SensorType.ROTATION:
|
|
@@ -164,7 +165,7 @@ class JSReanimated implements IReanimatedModule {
|
|
|
164
165
|
2.0 * (qx * qy + qw * qz),
|
|
165
166
|
qw * qw + qx * qx - qy * qy - qz * qz
|
|
166
167
|
);
|
|
167
|
-
// TODO TYPESCRIPT on web
|
|
168
|
+
// TODO TYPESCRIPT on web SerializableRef is the value itself so we call it directly
|
|
168
169
|
(eventHandler as any)({
|
|
169
170
|
qw,
|
|
170
171
|
qx,
|
|
@@ -187,7 +188,7 @@ class JSReanimated implements IReanimatedModule {
|
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
190
|
|
|
190
|
-
subscribeForKeyboardEvents(_:
|
|
191
|
+
subscribeForKeyboardEvents(_: SerializableRef<WorkletFunction>): number {
|
|
191
192
|
if (IS_WEB) {
|
|
192
193
|
logger.warn('useAnimatedKeyboard is not available on web yet.');
|
|
193
194
|
} else if (IS_JEST) {
|
|
@@ -254,13 +255,18 @@ class JSReanimated implements IReanimatedModule {
|
|
|
254
255
|
getViewProp<T>(
|
|
255
256
|
_viewTag: number,
|
|
256
257
|
_propName: string,
|
|
257
|
-
_component?:
|
|
258
|
+
_component?: WrapperRef | null,
|
|
258
259
|
_callback?: (result: T) => void
|
|
259
260
|
): Promise<T> {
|
|
260
261
|
throw new ReanimatedError('getViewProp is not available in JSReanimated.');
|
|
261
262
|
}
|
|
262
263
|
|
|
263
|
-
|
|
264
|
+
getStaticFeatureFlag(): boolean {
|
|
265
|
+
// mock implementation
|
|
266
|
+
return false;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
setDynamicFeatureFlag(): void {
|
|
264
270
|
// noop
|
|
265
271
|
}
|
|
266
272
|
|
|
@@ -282,6 +288,7 @@ class JSReanimated implements IReanimatedModule {
|
|
|
282
288
|
|
|
283
289
|
registerCSSKeyframes(
|
|
284
290
|
_animationName: string,
|
|
291
|
+
_viewName: string,
|
|
285
292
|
_keyframesConfig: NormalizedCSSAnimationKeyframesConfig
|
|
286
293
|
): void {
|
|
287
294
|
throw new ReanimatedError(
|
|
@@ -289,7 +296,7 @@ class JSReanimated implements IReanimatedModule {
|
|
|
289
296
|
);
|
|
290
297
|
}
|
|
291
298
|
|
|
292
|
-
unregisterCSSKeyframes(_animationName: string): void {
|
|
299
|
+
unregisterCSSKeyframes(_animationName: string, _viewName: string): void {
|
|
293
300
|
throw new ReanimatedError(
|
|
294
301
|
'`unregisterCSSKeyframes` is not available in JSReanimated.'
|
|
295
302
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
import { logger
|
|
2
|
+
import { logger } from '../../common';
|
|
3
3
|
import type { AnimatedStyle, StyleProps } from '../../commonTypes';
|
|
4
4
|
import type { PropUpdates } from '../../createAnimatedComponent/commonTypes';
|
|
5
5
|
import {
|
|
@@ -10,25 +10,6 @@ import {
|
|
|
10
10
|
|
|
11
11
|
export { createJSReanimatedModule } from './JSReanimated';
|
|
12
12
|
|
|
13
|
-
// TODO: Install these global functions in a more suitable location.
|
|
14
|
-
global._makeShareableClone = () => {
|
|
15
|
-
throw new ReanimatedError(
|
|
16
|
-
'`_makeShareableClone` should never be called from React runtime.'
|
|
17
|
-
);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
global._scheduleHostFunctionOnJS = () => {
|
|
21
|
-
throw new ReanimatedError(
|
|
22
|
-
'`_scheduleOnJS` should never be called from React runtime.'
|
|
23
|
-
);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
global._scheduleOnRuntime = () => {
|
|
27
|
-
throw new ReanimatedError(
|
|
28
|
-
'`_scheduleOnRuntime` should never be called from React runtime.'
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
13
|
interface JSReanimatedComponent {
|
|
33
14
|
previousStyle: StyleProps;
|
|
34
15
|
setNativeProps?: (style: StyleProps) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { SerializableRef, WorkletFunction } from 'react-native-worklets';
|
|
4
4
|
|
|
5
5
|
import type {
|
|
6
6
|
LayoutAnimationBatchItem,
|
|
@@ -8,17 +8,18 @@ import type {
|
|
|
8
8
|
StyleProps,
|
|
9
9
|
Value3D,
|
|
10
10
|
ValueRotation,
|
|
11
|
+
WrapperRef,
|
|
11
12
|
} from '../commonTypes';
|
|
12
13
|
import type {
|
|
13
14
|
CSSAnimationUpdates,
|
|
14
15
|
NormalizedCSSAnimationKeyframesConfig,
|
|
15
16
|
NormalizedCSSTransitionConfig,
|
|
16
|
-
} from '../css/
|
|
17
|
+
} from '../css/native';
|
|
17
18
|
|
|
18
19
|
/** Type of `__reanimatedModuleProxy` injected with JSI. */
|
|
19
20
|
export interface ReanimatedModuleProxy {
|
|
20
21
|
registerEventHandler<T>(
|
|
21
|
-
eventHandler:
|
|
22
|
+
eventHandler: SerializableRef<T>,
|
|
22
23
|
eventName: string,
|
|
23
24
|
emitterReactTag: number
|
|
24
25
|
): number;
|
|
@@ -35,15 +36,17 @@ export interface ReanimatedModuleProxy {
|
|
|
35
36
|
sensorType: number,
|
|
36
37
|
interval: number,
|
|
37
38
|
iosReferenceFrame: number,
|
|
38
|
-
handler:
|
|
39
|
+
handler: SerializableRef<(data: Value3D | ValueRotation) => void>
|
|
39
40
|
): number;
|
|
40
41
|
|
|
41
42
|
unregisterSensor(sensorId: number): void;
|
|
42
43
|
|
|
44
|
+
getStaticFeatureFlag(name: string): boolean;
|
|
45
|
+
|
|
43
46
|
setDynamicFeatureFlag(name: string, value: boolean): void;
|
|
44
47
|
|
|
45
48
|
subscribeForKeyboardEvents(
|
|
46
|
-
handler:
|
|
49
|
+
handler: SerializableRef<WorkletFunction>,
|
|
47
50
|
isStatusBarTranslucent: boolean,
|
|
48
51
|
isNavigationBarTranslucent: boolean
|
|
49
52
|
): number;
|
|
@@ -63,10 +66,11 @@ export interface ReanimatedModuleProxy {
|
|
|
63
66
|
|
|
64
67
|
registerCSSKeyframes(
|
|
65
68
|
animationName: string,
|
|
69
|
+
viewName: string,
|
|
66
70
|
keyframesConfig: NormalizedCSSAnimationKeyframesConfig
|
|
67
71
|
): void;
|
|
68
72
|
|
|
69
|
-
unregisterCSSKeyframes(animationName: string): void;
|
|
73
|
+
unregisterCSSKeyframes(animationName: string, viewName: string): void;
|
|
70
74
|
|
|
71
75
|
applyCSSAnimations(
|
|
72
76
|
shadowNodeWrapper: ShadowNodeWrapper,
|
|
@@ -93,7 +97,7 @@ export interface IReanimatedModule
|
|
|
93
97
|
getViewProp<TValue>(
|
|
94
98
|
viewTag: number,
|
|
95
99
|
propName: string,
|
|
96
|
-
component:
|
|
100
|
+
component: WrapperRef | null,
|
|
97
101
|
callback?: (result: TValue) => void
|
|
98
102
|
): Promise<TValue>;
|
|
99
103
|
}
|
package/src/Sensor.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SerializableRef, WorkletFunction } from 'react-native-worklets';
|
|
3
3
|
|
|
4
4
|
import type {
|
|
5
5
|
SensorConfig,
|
|
@@ -49,7 +49,7 @@ export default class Sensor {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
register(
|
|
52
|
-
eventHandler:
|
|
52
|
+
eventHandler: SerializableRef<(data: Value3D | ValueRotation) => void>
|
|
53
53
|
) {
|
|
54
54
|
const config = this.config;
|
|
55
55
|
const sensorType = this.sensorType;
|
|
@@ -57,7 +57,7 @@ export default class Sensor {
|
|
|
57
57
|
sensorType,
|
|
58
58
|
config.interval === 'auto' ? -1 : config.interval,
|
|
59
59
|
config.iosReferenceFrame,
|
|
60
|
-
eventHandler as
|
|
60
|
+
eventHandler as SerializableRef<WorkletFunction>
|
|
61
61
|
);
|
|
62
62
|
return this.sensorId !== -1;
|
|
63
63
|
}
|
package/src/SensorContainer.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SerializableRef } from 'react-native-worklets';
|
|
3
3
|
|
|
4
4
|
import type {
|
|
5
5
|
SensorConfig,
|
|
@@ -39,7 +39,7 @@ export class SensorContainer {
|
|
|
39
39
|
registerSensor(
|
|
40
40
|
sensorType: SensorType,
|
|
41
41
|
config: SensorConfig,
|
|
42
|
-
handler:
|
|
42
|
+
handler: SerializableRef<(data: Value3D | ValueRotation) => void>
|
|
43
43
|
): number {
|
|
44
44
|
const sensorId = this.getSensorId(sensorType, config);
|
|
45
45
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
import {
|
|
2
|
+
import { createSerializable } from 'react-native-worklets';
|
|
3
3
|
|
|
4
4
|
import { SHOULD_BE_USE_WEB } from './common';
|
|
5
5
|
import type {
|
|
@@ -69,7 +69,7 @@ if (SHOULD_BE_USE_WEB) {
|
|
|
69
69
|
{
|
|
70
70
|
viewTag,
|
|
71
71
|
type,
|
|
72
|
-
config: config ?
|
|
72
|
+
config: config ? createSerializable(config) : undefined,
|
|
73
73
|
},
|
|
74
74
|
isUnmounting
|
|
75
75
|
);
|