-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move and Rename propType definitions in ShadowPropTypesIOS (#21379)
Summary: related #21342 move TransformPropTypes.js fix flow error - [x] yarn prettier - [x] yarn flow-check-android - [x] yarn flow-check-ios All flow checks pass. [GENERAL] [ENHANCEMENT] [DeprecatedShadowPropTypesIOS.js] - Created. Pull Request resolved: #21379 Differential Revision: D10098750 Pulled By: TheSavior fbshipit-source-id: f7f2e4bf7b837c00a14b1fbd930d1b29ffb63549
- Loading branch information
1 parent
c18458b
commit f94d2ad
Showing
5 changed files
with
54 additions
and
54 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
Libraries/DeprecatedPropTypes/DeprecatedShadowPropTypesIOS.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* 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. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
'use strict'; | ||
|
||
const DeprecatedColorPropType = require('DeprecatedColorPropType'); | ||
const ReactPropTypes = require('prop-types'); | ||
|
||
const DeprecatedShadowPropTypesIOS = { | ||
shadowColor: DeprecatedColorPropType, | ||
shadowOffset: ReactPropTypes.shape({ | ||
width: ReactPropTypes.number, | ||
height: ReactPropTypes.number, | ||
}), | ||
shadowOpacity: ReactPropTypes.number, | ||
shadowRadius: ReactPropTypes.number, | ||
}; | ||
|
||
module.exports = DeprecatedShadowPropTypesIOS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters