mirror of
https://github.com/status-im/react-native.git
synced 2025-02-22 14:18:23 +00:00
Summary: This PR splits EdgeInsetsPropTypes into EdgeInsetsPropTypes with only flow types and DeprecatedEdgeInsetsPropTypes inside DeprecatedProptypes with only PropTypes. Related to #21342 Pull Request resolved: https://github.com/facebook/react-native/pull/21351 Reviewed By: RSNara Differential Revision: D10081512 Pulled By: TheSavior fbshipit-source-id: 267a6fbb455e02dd7f2b0f3b59790e96387eaa09
23 lines
490 B
JavaScript
23 lines
490 B
JavaScript
/**
|
|
* 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 DeprecatedEdgeInsetsPropType = PropTypes.shape({
|
|
top: PropTypes.number,
|
|
left: PropTypes.number,
|
|
bottom: PropTypes.number,
|
|
right: PropTypes.number,
|
|
});
|
|
|
|
module.exports = DeprecatedEdgeInsetsPropType;
|