Skip to content

Commit 9b04bfe

Browse files
committed
Clean up imports, relocate some more things
1 parent aa1b9de commit 9b04bfe

File tree

41 files changed

+209
-211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+209
-211
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict';
2+
export * from './font';
3+
export * from './platform';

packages/react-native-reanimated/src/common/style/__tests__/createStyleBuilder.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 type { PlainStyle } from '../..';
2+
import type { PlainStyle } from '../../types';
33
import createStyleBuilder from '../createStyleBuilder';
44
// TODO - add more tests
55

packages/react-native-reanimated/src/common/style/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
2-
import type { PlainStyle } from '..';
3-
import { IS_ANDROID } from '..';
2+
import { IS_ANDROID } from '../constants';
3+
import type { PlainStyle } from '../types';
44
import { processTransformOrigin } from '../web';
55
import {
66
processAspectRatio,

packages/react-native-reanimated/src/common/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 { isConfigPropertyAlias, isDefined, isRecord } from '../../css/utils';
4-
import type { AnyRecord } from '..';
3+
import type { AnyRecord } from '../types';
4+
import { isConfigPropertyAlias, isDefined, isRecord } from '../utils';
55
import type {
66
StyleBuilder,
77
StyleBuilderConfig,

packages/react-native-reanimated/src/common/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 '../../..';
2+
import { ReanimatedError } from '../../../errors';
33
import { ERROR_MESSAGES, processAspectRatio } from '../others';
44

55
describe(processAspectRatio, () => {

packages/react-native-reanimated/src/common/style/processors/__tests__/transform.test.ts

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

66
describe(processTransform, () => {

packages/react-native-reanimated/src/common/style/processors/font.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
2-
import { FONT_WEIGHT_MAPPINGS } from '../../../css/constants';
3-
import type { ValueProcessor } from '../..';
4-
import { ReanimatedError } from '../..';
2+
3+
import { FONT_WEIGHT_MAPPINGS } from '../../constants';
4+
import type { ValueProcessor } from '../../types';
55

66
const ERROR_MESSAGES = {
77
invalidFontWeight: (weight: string | number) =>

packages/react-native-reanimated/src/common/style/processors/insets.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 { DimensionValue } from 'react-native';
33

4-
import type { ValueProcessor } from '../..';
4+
import type { ValueProcessor } from '../../types';
55

66
type InsetProcessor = ValueProcessor<
77
DimensionValue,

0 commit comments

Comments
 (0)