mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
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:
committed by
Facebook Github Bot
parent
22cf5dc566
commit
76948ad1bd
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user