Skip to content

Commit

Permalink
RN: Cleanup DeprecatedTextInputPropTypes
Browse files Browse the repository at this point in the history
Summary:
Removes the unnecessary dependency from `DeprecatedTextInputPropTypes` on `Text`. Just use `DeprecatedTextPropTypes` directly.

Changelog:
[Internal]

Reviewed By: TheSavior

Differential Revision: D29017596

fbshipit-source-id: b816c2261bf473e02473d84984cfb3d5a63ec8c1
  • Loading branch information
yungsters authored and facebook-github-bot committed Jun 12, 2021
1 parent efefae9 commit 052b3e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js
Expand Up @@ -11,9 +11,9 @@
'use strict';

const DeprecatedColorPropType = require('./DeprecatedColorPropType');
const DeprecatedTextPropTypes = require('./DeprecatedTextPropTypes');
const DeprecatedViewPropTypes = require('./DeprecatedViewPropTypes');
const PropTypes = require('prop-types');
const Text = require('../Text/Text');

const DataDetectorTypes = [
'phoneNumber',
Expand Down Expand Up @@ -467,7 +467,7 @@ module.exports = {
* [Styles](docs/style.html)
*/
// $FlowFixMe[incompatible-use]
style: Text.propTypes.style,
style: DeprecatedTextPropTypes.style,
/**
* The color of the `TextInput` underline.
* @platform android
Expand Down

0 comments on commit 052b3e3

Please sign in to comment.