Skip to content

Commit

Permalink
Typing ViewProp, ImageProp
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSavior authored and facebook-github-bot committed Mar 7, 2018
1 parent d7b5b2e commit c129457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/StyleSheet/StyleSheetTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ export type StyleProp<+T> =
export type StyleObj = StyleProp<$Shape<Style>>;
export type StyleValue = StyleObj;

export type ViewStyleProp = StyleObj;
export type ViewStyleProp = StyleProp<$ReadOnly<$Shape<ViewStyle>>>;
export type TextStyleProp = StyleObj;
export type ImageStyleProp = StyleObj;
export type ImageStyleProp = StyleProp<$ReadOnly<$Shape<ImageStyle>>>;

export type Styles = {
+[key: string]: $Shape<Style>,
Expand Down

0 comments on commit c129457

Please sign in to comment.