diff --git a/src/apis/StyleSheet/EdgeInsetsPropType.js b/src/apis/StyleSheet/EdgeInsetsPropType.js new file mode 100644 index 00000000..cf2d0fcb --- /dev/null +++ b/src/apis/StyleSheet/EdgeInsetsPropType.js @@ -0,0 +1,26 @@ +/* eslint-disable */ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * @providesModule EdgeInsetsPropType + * @flow + */ +'use strict'; + +var PropTypes = require('react').PropTypes; + +var createStrictShapeTypeChecker = require('./createStrictShapeTypeChecker'); + +var EdgeInsetsPropType = createStrictShapeTypeChecker({ + top: PropTypes.number, + left: PropTypes.number, + bottom: PropTypes.number, + right: PropTypes.number, +}); + +module.exports = EdgeInsetsPropType; diff --git a/src/apis/StyleSheet/PointPropType.js b/src/apis/StyleSheet/PointPropType.js new file mode 100644 index 00000000..553227d6 --- /dev/null +++ b/src/apis/StyleSheet/PointPropType.js @@ -0,0 +1,24 @@ +/* eslint-disable */ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * @providesModule PointPropType + * @flow + */ +'use strict'; + +var PropTypes = require('react').PropTypes; + +var createStrictShapeTypeChecker = require('./createStrictShapeTypeChecker'); + +var PointPropType = createStrictShapeTypeChecker({ + x: PropTypes.number, + y: PropTypes.number, +}); + +module.exports = PointPropType;