Skip to content

Commit 8986ccb

Browse files
committed
Fis issues after rebase
1 parent dd2c6de commit 8986ccb

File tree

27 files changed

+31
-2
lines changed

27 files changed

+31
-2
lines changed

packages/react-native-reanimated/src/Bezier.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
import { ReanimatedError } from './errors';
4+
35
/**
46
* https://github.com/gre/bezier-easing
57
* BezierEasing - use bezier curve for transition easing function

packages/react-native-reanimated/src/ConfigHelper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import { PropsAllowlists } from './propsAllowlists';
33
import { jsiConfigureProps } from './core';
4+
import { ReanimatedError } from './errors';
45

56
function assertNoOverlapInLists() {
67
for (const key in PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST) {

packages/react-native-reanimated/src/NativeReanimated/NativeReanimated.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import type React from 'react';
1414
import { getShadowNodeWrapperFromRef } from '../fabricUtils';
1515
import type { LayoutAnimationBatchItem } from '../layoutReanimation/animationBuilder/commonTypes';
1616
import ReanimatedModule from '../specs/NativeReanimatedModule';
17+
import { ReanimatedError } from '../errors';
1718

1819
// this is the type of `__reanimatedModuleProxy` which is injected using JSI
1920
export interface NativeReanimatedModule {

packages/react-native-reanimated/src/PropsRegistry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
'use strict';
2+
import { ReanimatedError } from './errors';
23
import { isFabric } from './PlatformChecker';
34
import { runOnUI } from './threads';
45

packages/react-native-reanimated/src/UpdateProps.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import type { ReanimatedHTMLElement } from './js-reanimated';
1313
import { _updatePropsJS } from './js-reanimated';
1414
import { isFabric, isJest, shouldBeUseWeb } from './PlatformChecker';
1515
import { runOnUIImmediately } from './threads';
16+
import { ReanimatedError } from './errors';
1617

1718
let updateProps: (
1819
viewDescriptor: SharedValue<Descriptor[]>,

packages/react-native-reanimated/src/animation/decay/decay.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import type {
1414
InnerDecayAnimation,
1515
} from './utils';
1616
import { rigidDecay } from './rigidDecay';
17+
import { ReanimatedError } from '../../errors';
1718

1819
export type WithDecayConfig = DecayConfig;
1920

packages/react-native-reanimated/src/animation/transformationMatrix/matrixUtils.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
import { ReanimatedError } from '../../errors';
4+
35
type FixedLengthArray<
46
T,
57
L extends number,

packages/react-native-reanimated/src/animation/util.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import { shouldBeUseWeb } from '../PlatformChecker';
3737
import type { EasingFunctionFactory } from '../Easing';
3838
import { ReducedMotionManager } from '../ReducedMotion';
3939
import { logger } from '../logger';
40+
import { ReanimatedError } from '../errors';
4041

4142
let IN_STYLE_UPDATER = false;
4243
const SHOULD_BE_USE_WEB = shouldBeUseWeb();

packages/react-native-reanimated/src/core.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { makeShareableCloneRecursive } from './shareables';
1313
import { initializeUIRuntime } from './initializers';
1414
import type { LayoutAnimationBatchItem } from './layoutReanimation/animationBuilder/commonTypes';
1515
import { SensorContainer } from './SensorContainer';
16+
import { ReanimatedError } from './errors';
1617

1718
export { startMapper, stopMapper } from './mappers';
1819
export { runOnJS, runOnUI, executeOnUIRuntimeSync } from './threads';

packages/react-native-reanimated/src/createAnimatedComponent/createAnimatedComponent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ import { addHTMLMutationObserver } from '../layoutReanimation/web/domUtils';
5252
import { getViewInfo } from './getViewInfo';
5353
import { NativeEventsManager } from './NativeEventsManager';
5454
import type { ReanimatedHTMLElement } from '../js-reanimated';
55+
import { ReanimatedError } from '../errors';
5556

5657
const IS_WEB = isWeb();
5758
const IS_JEST = isJest();

packages/react-native-reanimated/src/fabricUtils.web.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
import { ReanimatedError } from './errors';
4+
35
export function getShadowNodeWrapperFromRef() {
46
throw new ReanimatedError(
57
'Trying to call `getShadowNodeWrapperFromRef` on web.'

packages/react-native-reanimated/src/hook/useAnimatedStyle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import type {
3434
AnimatedStyle,
3535
} from '../commonTypes';
3636
import { isWorkletFunction } from '../commonTypes';
37+
import { ReanimatedError } from '../errors';
3738

3839
const SHOULD_BE_USE_WEB = shouldBeUseWeb();
3940

packages/react-native-reanimated/src/hook/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict';
22
import type { WorkletFunction } from '../commonTypes';
3+
import { ReanimatedError } from '../errors';
34
import type { DependencyList } from './commonTypes';
45

56
// Builds one big hash from multiple worklets' hashes.

packages/react-native-reanimated/src/interpolateColor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { makeMutable } from './core';
1313
import { Extrapolation, interpolate } from './interpolation';
1414
import type { SharedValue } from './commonTypes';
1515
import { useSharedValue } from './hook/useSharedValue';
16+
import { ReanimatedError } from './errors';
1617

1718
/**
1819
* @deprecated Please use Extrapolation instead

packages/react-native-reanimated/src/interpolation.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
import { ReanimatedError } from './errors';
4+
35
/**
46
* Extrapolation type.
57
*

packages/react-native-reanimated/src/jestUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type {
99
} from './createAnimatedComponent/commonTypes';
1010
import { isJest } from './PlatformChecker';
1111
import type { DefaultStyle } from './hook/commonTypes';
12+
import { ReanimatedError } from './errors';
1213

1314
declare global {
1415
namespace jest {

packages/react-native-reanimated/src/js-reanimated/JSReanimated.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import type { WebSensor } from './WebSensor';
1111
import { mockedRequestAnimationFrame } from '../mockedRequestAnimationFrame';
1212
import type { WorkletRuntime } from '../runtimes';
1313
import { logger } from '../logger';
14+
import { ReanimatedError } from '../errors';
1415

1516
// In Node.js environments (like when static rendering with Expo Router)
1617
// requestAnimationFrame is unavailable, so we use our mock.

packages/react-native-reanimated/src/js-reanimated/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
} from './webUtils';
99
import { PropsAllowlists } from '../propsAllowlists';
1010
import { logger } from '../logger';
11+
import { ReanimatedError } from '../errors';
1112

1213
const reanimatedJS = new JSReanimated();
1314

packages/react-native-reanimated/src/layoutReanimation/animationBuilder/BaseAnimationBuilder.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import type {
88

99
import { ReduceMotion } from '../../commonTypes';
1010
import { getReduceMotionFromConfig } from '../../animation/util';
11+
import { ReanimatedError } from '../../errors';
1112

1213
export class BaseAnimationBuilder {
1314
durationV?: number;

packages/react-native-reanimated/src/layoutReanimation/animationBuilder/Keyframe.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
assertEasingIsWorklet,
1919
getReduceMotionFromConfig,
2020
} from '../../animation/util';
21+
import { ReanimatedError } from '../../errors';
2122

2223
interface KeyframePoint {
2324
duration: number;

packages/react-native-reanimated/src/layoutReanimation/sharedTransitions/ProgressTransitionManager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type {
77
import { registerEventHandler, unregisterEventHandler } from '../../core';
88
import { Platform } from 'react-native';
99
import { isJest, shouldBeUseWeb } from '../../PlatformChecker';
10+
import { ReanimatedError } from '../../errors';
1011

1112
type TransitionProgressEvent = {
1213
closing: number;

packages/react-native-reanimated/src/layoutReanimation/sharedTransitions/SharedTransition.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { ReduceMotion } from '../../commonTypes';
1616
import { ProgressTransitionManager } from './ProgressTransitionManager';
1717
import { updateLayoutAnimations } from '../../UpdateLayoutAnimations';
1818
import { getReduceMotionFromConfig } from '../../animation/util';
19+
import { ReanimatedError } from '../../errors';
1920

2021
const SUPPORTED_PROPS = [
2122
'width',

packages/react-native-reanimated/src/layoutReanimation/web/domUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { setElementPosition, snapshots } from './componentStyle';
77
import { Animations } from './config';
88
import type { AnimationNames } from './config';
99
import { logger } from '../../logger';
10+
import { ReanimatedError } from '../../errors';
1011

1112
const PREDEFINED_WEB_ANIMATIONS_ID = 'ReanimatedPredefinedWebAnimationsStyle';
1213
const CUSTOM_WEB_ANIMATIONS_ID = 'ReanimatedCustomWebAnimationsStyle';

packages/react-native-reanimated/src/mutables.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import { shouldBeUseWeb } from './PlatformChecker';
33
import type { Mutable } from './commonTypes';
4+
import { ReanimatedError } from './errors';
45

56
import { shareableMappingCache } from './shareableMappingCache';
67
import { makeShareableCloneRecursive } from './shareables';

packages/react-native-reanimated/src/platform-specific/checkCppVersion.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import { jsVersion } from './jsVersion';
44
import { logger } from '../logger';
5+
import { ReanimatedError } from '../errors';
56

67
export function checkCppVersion() {
78
const cppVersion = global._REANIMATED_VERSION_CPP;

packages/react-native-reanimated/src/runtimes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
import { isWorkletFunction } from './commonTypes';
33
import type { WorkletFunction } from './commonTypes';
4-
import { registerReanimatedError } from './errors';
4+
import { ReanimatedError, registerReanimatedError } from './errors';
55
import { setupCallGuard, setupConsole } from './initializers';
66
import NativeReanimatedModule from './NativeReanimated';
77
import { shouldBeUseWeb } from './PlatformChecker';

packages/react-native-reanimated/src/shareables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type {
77
WorkletFunction,
88
} from './commonTypes';
99
import { shouldBeUseWeb } from './PlatformChecker';
10-
import { registerWorkletStackDetails } from './errors';
10+
import { ReanimatedError, registerWorkletStackDetails } from './errors';
1111
import { jsVersion } from './platform-specific/jsVersion';
1212
import {
1313
shareableMappingCache,

0 commit comments

Comments
 (0)