Move __StyleProp to StyleSheet
Reviewed By: yungsters Differential Revision: D7185815 fbshipit-source-id: 897ae37af3f03aa1408f020bcc7e61004d4dbc0d
This commit is contained in:
parent
3c23645cae
commit
cf89a2cbfd
|
@ -20,10 +20,17 @@ import type {
|
|||
StyleSheetStyle as _StyleSheetStyle,
|
||||
Styles as _Styles,
|
||||
____StyleObj_Internal,
|
||||
____ViewStyleProp_Internal,
|
||||
____TextStyleProp_Internal,
|
||||
____ImageStyleProp_Internal,
|
||||
LayoutStyle
|
||||
} from 'StyleSheetTypes';
|
||||
|
||||
export type DangerouslyImpreciseStyleProp = ____StyleObj_Internal;
|
||||
export type ViewStyleProp = ____ViewStyleProp_Internal;
|
||||
export type TextStyleProp = ____TextStyleProp_Internal;
|
||||
export type ImageStyleProp = ____ImageStyleProp_Internal;
|
||||
|
||||
export type Styles = _Styles;
|
||||
export type StyleSheetStyle = _StyleSheetStyle;
|
||||
type StyleSheet<+S: Styles> = $ObjMap<S, (Object) => StyleSheetStyle>;
|
||||
|
|
|
@ -231,10 +231,15 @@ type GenericStyleProp<+T> =
|
|||
| $ReadOnlyArray<GenericStyleProp<T>>;
|
||||
|
||||
export type ____StyleObj_Internal = GenericStyleProp<$Shape<Style>>;
|
||||
|
||||
export type ViewStyleProp = GenericStyleProp<$ReadOnly<$Shape<ViewStyle>>>;
|
||||
export type TextStyleProp = GenericStyleProp<$ReadOnly<$Shape<TextStyle>>>;
|
||||
export type ImageStyleProp = GenericStyleProp<$ReadOnly<$Shape<ImageStyle>>>;
|
||||
export type ____ViewStyleProp_Internal = GenericStyleProp<
|
||||
$ReadOnly<$Shape<ViewStyle>>,
|
||||
>;
|
||||
export type ____TextStyleProp_Internal = GenericStyleProp<
|
||||
$ReadOnly<$Shape<TextStyle>>,
|
||||
>;
|
||||
export type ____ImageStyleProp_Internal = GenericStyleProp<
|
||||
$ReadOnly<$Shape<ImageStyle>>,
|
||||
>;
|
||||
|
||||
export type Styles = {
|
||||
+[key: string]: $Shape<Style>,
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
import type {Node} from 'react';
|
||||
|
||||
import type {LayoutEvent} from 'CoreEventTypes';
|
||||
import type {TextStyleProp} from 'StyleSheetTypes';
|
||||
import type {TextStyleProp} from 'StyleSheet';
|
||||
|
||||
type PressRetentionOffset = {
|
||||
top: number,
|
||||
|
|
Loading…
Reference in New Issue