Change flatten import syntax in StyleSheet (#48705)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/48705

Changelog:
[Internal] - Changed flatten import syntax in StyleSheet

Reviewed By: elicwhite

Differential Revision: D68213648

fbshipit-source-id: bf6c33387ae9d36b6ce41b57639948c2b4902e55
This commit is contained in:
Dawid Małecki
2025-01-16 02:04:05 -08:00
committed by Facebook GitHub Bot
parent df9d43f02b
commit 68ae3ca5e9
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -24,10 +24,10 @@ import type {
} from './StyleSheetTypes';
import composeStyles from '../../src/private/styles/composeStyles';
import flatten from './flattenStyle';
const ReactNativeStyleAttributes = require('../Components/View/ReactNativeStyleAttributes');
const PixelRatio = require('../Utilities/PixelRatio').default;
const flatten = require('./flattenStyle');
export type {NativeColorValue} from './StyleSheetTypes';
@@ -7827,8 +7827,7 @@ declare export function normalizeRect(rectOrSize: ?RectOrSize): ?Rect;
`;
exports[`public API should not change unintentionally Libraries/StyleSheet/StyleSheet.js 1`] = `
"declare const flatten: $FlowFixMe;
export type { NativeColorValue } from \\"./StyleSheetTypes\\";
"export type { NativeColorValue } from \\"./StyleSheetTypes\\";
export type ColorValue = ____ColorValue_Internal;
export type ViewStyleProp = ____ViewStyleProp_Internal;
export type TextStyleProp = ____TextStyleProp_Internal;