Skip to content

Commit f3c8027

Browse files
peaonunesfacebook-github-bot
authored andcommitted
Split PointPropType (#21355)
Summary: This PR split PointPropType.js into PointPropType.js with Flow definition and Libraries/DeprecatedPointPropType.js remaining with PropTypes definition. Related to #21342 Pull Request resolved: #21355 Differential Revision: D10081399 Pulled By: TheSavior fbshipit-source-id: 2283ff3fbda6b0f525742336f92fd6279250b874
1 parent 1b90908 commit f3c8027

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* Copyright (c) Facebook, Inc. and its affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @format
8+
* @flow strict
9+
*/
10+
11+
'use strict';
12+
13+
const PropTypes = require('prop-types');
14+
15+
const PointPropType = PropTypes.shape({
16+
x: PropTypes.number,
17+
y: PropTypes.number,
18+
});
19+
20+
module.exports = PointPropType;

Libraries/StyleSheet/PointPropType.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,7 @@
1010

1111
'use strict';
1212

13-
const PropTypes = require('prop-types');
14-
15-
const PointPropType = PropTypes.shape({
16-
x: PropTypes.number,
17-
y: PropTypes.number,
18-
});
19-
2013
export type PointProp = $ReadOnly<{
2114
x: number,
2215
y: number,
2316
}>;
24-
25-
module.exports = PointPropType;

0 commit comments

Comments
 (0)