Typing View style as ViewStyleProp

Summary: Locking down view style so that invalid styles can't be passed into View.

Reviewed By: yungsters

Differential Revision: D9309097

fbshipit-source-id: 69e7e3c5626609cfd47c167027a55470c42228c8
This commit is contained in:
Eli White
2018-08-14 16:31:04 -07:00
committed by Facebook Github Bot
parent 22cf5dc566
commit 76948ad1bd
15 changed files with 70 additions and 57 deletions

View File

@@ -16,25 +16,25 @@ type ImageCropData = {
* The top-left corner of the cropped image, specified in the original
* image's coordinate space.
*/
offset: {
offset: {|
x: number,
y: number,
},
|},
/**
* The size (dimensions) of the cropped image, specified in the original
* image's coordinate space.
*/
size: {
size: {|
width: number,
height: number,
},
|},
/**
* (Optional) size to scale the cropped image to.
*/
displaySize?: ?{
displaySize?: ?{|
width: number,
height: number,
},
|},
/**
* (Optional) the resizing mode to use when scaling the image. If the
* `displaySize` param is not specified, this has no effect.