mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 20:01:01 +08:00
Updates from Fri Feb 27
- [react-packager] transformModulePath option is not actually required | Amjad Masad - Implement TextInput.clearButtonMode added by D1875684 on OSS fork + example | Tadeu Zagallo - [ReactNative] Use local CocoaPod config for ReactNative modules | Spencer Ahrens - [ReactNative] Pull out some OSS modules into separate libs | Spencer Ahrens - Enqueue events at 60fps + profiling helpers | Tadeu Zagallo
This commit is contained in:
27
Libraries/Image/ImageSourcePropType.js
Normal file
27
Libraries/Image/ImageSourcePropType.js
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* Copyright 2004-present Facebook. All Rights Reserved.
|
||||
*
|
||||
* @providesModule ImageSourcePropType
|
||||
* @flow
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
var { PropTypes } = require('React');
|
||||
|
||||
var ImageSourcePropType = PropTypes.shape({
|
||||
/**
|
||||
* uri - A string representing the resource identifier for the image, which
|
||||
* could be an http address, a local file path, or the name of a static image
|
||||
* resource (which should be wrapped in the `ix` function).
|
||||
*/
|
||||
uri: PropTypes.string.isRequired,
|
||||
/**
|
||||
* width/height - Used to store the size of the image itself, but unused by
|
||||
* the <Image> component - use normal style layout properties to define the
|
||||
* size of the frame.
|
||||
*/
|
||||
width: PropTypes.number,
|
||||
height: PropTypes.number,
|
||||
});
|
||||
|
||||
module.exports = ImageSourcePropType;
|
||||
Reference in New Issue
Block a user