forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TVViewPropTypes, PlatformViewPropTypes, DeprecatedTVViewPropTypes (fa…
…cebook#21372) Summary: Related to facebook#21342 - Split TVViewPropTypes - PlatformViewPropTypes (dependencies) flow types and old prop-type definitions - ViewStylePropTypes (dependencies) rm prop-type Flow tests succeed [GENERAL] [ENHANCEMENT] [TVViewPropTypes.js] - rm prop-types [GENERAL] [ENHANCEMENT] [PlatformViewPropTypes.android.js] - replace prop-types by Flow [GENERAL] [ENHANCEMENT] [PlatformViewPropTypes.ios.js] - replace prop-types by Flow [GENERAL] [ENHANCEMENT] [DeprecatedTVViewPropTypes.js] - old prop-types Pull Request resolved: facebook#21372 Differential Revision: D10095528 Pulled By: TheSavior fbshipit-source-id: 4fc52ab194f680f95aabefedcbf119d6897672b7
- Loading branch information
1 parent
2145bda
commit 894a703
Showing
5 changed files
with
96 additions
and
53 deletions.
There are no files selected for viewing
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
14 changes: 14 additions & 0 deletions
14
Libraries/Components/View/PlatformViewPropTypes.android.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,14 @@ | ||
/** | ||
* 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. | ||
* | ||
* @providesModule PlatformViewPropTypes | ||
* @format | ||
* @flow | ||
*/ | ||
|
||
'use strict'; | ||
|
||
export type PlatformViewPropTypes = {}; |
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,16 @@ | ||
/** | ||
* 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. | ||
* | ||
* @providesModule PlatformViewPropTypes | ||
* @format | ||
* @flow | ||
*/ | ||
|
||
'use strict'; | ||
|
||
import type {TVViewProps} from 'TVViewPropTypes'; | ||
|
||
export type PlatformViewPropTypes = TVViewProps; |
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
Libraries/DeprecatedPropTypes/DeprecatedTVViewPropTypes.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. | ||
* | ||
* @format | ||
* @flow | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const PropTypes = require('prop-types'); | ||
|
||
const DeprecatedTVViewPropTypes = { | ||
isTVSelectable: PropTypes.bool, | ||
hasTVPreferredFocus: PropTypes.bool, | ||
tvParallaxProperties: PropTypes.object, | ||
tvParallaxShiftDistanceX: PropTypes.number, | ||
tvParallaxShiftDistanceY: PropTypes.number, | ||
tvParallaxTiltAngle: PropTypes.number, | ||
tvParallaxMagnification: PropTypes.number, | ||
}; | ||
|
||
module.exports = DeprecatedTVViewPropTypes; |