Skip to content

Commit 447b3c8

Browse files
committed
Relocate native style builders to the common dir
1 parent 05e7b57 commit 447b3c8

File tree

29 files changed

+126
-70
lines changed

29 files changed

+126
-70
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './style';

packages/react-native-reanimated/src/css/native/style/createStyleBuilder.ts renamed to packages/react-native-reanimated/src/common/native/style/createStyleBuilder.ts

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

3-
import type { AnyRecord } from '../../../common';
4-
import { isConfigPropertyAlias, isDefined, isRecord } from '../../utils';
3+
import { isConfigPropertyAlias, isDefined, isRecord } from '../../../css/utils';
4+
import type { AnyRecord } from '../..';
55
import type {
66
StyleBuilder,
77
StyleBuilderConfig,

packages/react-native-reanimated/src/common/processors/__tests__/colors.test.ts renamed to packages/react-native-reanimated/src/common/native/style/processors/__tests__/colors.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
'use strict';
2-
import { ReanimatedError } from '../../errors';
3-
import { ERROR_MESSAGES, processColor, processColorsInProps } from '../colors';
2+
import { ReanimatedError } from '../../../../errors';
3+
import {
4+
ERROR_MESSAGES,
5+
processColor,
6+
processColorsInProps,
7+
} from '../../../../processors';
48

59
describe(processColorsInProps, () => {
610
describe('properly converts colors in props', () => {

packages/react-native-reanimated/src/css/native/style/processors/__tests__/others.test.ts renamed to packages/react-native-reanimated/src/common/native/style/processors/__tests__/others.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
import { ReanimatedError } from '../../../../../common';
2+
import { ReanimatedError } from '../../../..';
33
import { ERROR_MESSAGES, processAspectRatio } from '../others';
44

55
describe(processAspectRatio, () => {

packages/react-native-reanimated/src/common/processors/__tests__/shadows.test.ts renamed to packages/react-native-reanimated/src/common/native/style/processors/__tests__/shadows.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
import type { BoxShadowValue } from 'react-native';
33

4-
import { processColor } from '../colors';
4+
import { processColor } from '../../../../processors/colors';
55
import type { ProcessedBoxShadowValue } from '../shadows';
66
import { processBoxShadowNative } from '../shadows';
77

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
2-
import { ReanimatedError } from '../../../../../common';
3-
import type { TransformsArray } from '../../../../types';
2+
import type { TransformsArray } from '../../../../../css/types';
3+
import { ReanimatedError } from '../../../..';
44
import { ERROR_MESSAGES, processTransform } from '../transform';
55

66
describe(processTransform, () => {

packages/react-native-reanimated/src/common/processors/__tests__/transformOrigin.test.ts renamed to packages/react-native-reanimated/src/common/native/style/processors/__tests__/transformOrigin.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
'use strict';
2-
import { ReanimatedError } from '../../errors';
3-
import type { NormalizedTransformOrigin, TransformOrigin } from '../../types';
2+
import { ReanimatedError } from '../../../../errors';
3+
import type {
4+
NormalizedTransformOrigin,
5+
TransformOrigin,
6+
} from '../../../../types';
47
import { ERROR_MESSAGES, processTransformOrigin } from '../transformOrigin';
58

69
describe(processTransformOrigin, () => {

0 commit comments

Comments
 (0)