mirror of
https://github.com/status-im/react-native.git
synced 2025-02-12 09:26:37 +00:00
- [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
28 lines
772 B
JavaScript
28 lines
772 B
JavaScript
/**
|
|
* 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;
|