Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Libraries/DeprecatedPropTypes/DeprecatedPointPropType.js
Original file line numberDiff line numberDiff line change
@@ -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;
9 changes: 0 additions & 9 deletions Libraries/StyleSheet/PointPropType.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -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;