diff --git a/Libraries/DeprecatedPropTypes/DeprecatedPointPropType.js b/Libraries/DeprecatedPropTypes/DeprecatedPointPropType.js new file mode 100644 index 00000000000000..9ae8c8f9872d5c --- /dev/null +++ b/Libraries/DeprecatedPropTypes/DeprecatedPointPropType.js @@ -0,0 +1,20 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * @flow strict + */ + +'use strict'; + +const PropTypes = require('prop-types'); + +const PointPropType = PropTypes.shape({ + x: PropTypes.number, + y: PropTypes.number, +}); + +module.exports = PointPropType; diff --git a/Libraries/StyleSheet/PointPropType.js b/Libraries/StyleSheet/PointPropType.js index be8a5296eb85e7..302892edae391a 100644 --- a/Libraries/StyleSheet/PointPropType.js +++ b/Libraries/StyleSheet/PointPropType.js @@ -10,16 +10,7 @@ 'use strict'; -const PropTypes = require('prop-types'); - -const PointPropType = PropTypes.shape({ - x: PropTypes.number, - y: PropTypes.number, -}); - export type PointProp = $ReadOnly<{ x: number, y: number, }>; - -module.exports = PointPropType;