Skip to content

Commit 3e229f2

Browse files
yungstersfacebook-github-bot
authored andcommitted
RN: Remove propTypes from Image, Text, and TextInput
Summary: Removes the `propTypes` member from the `Image`, `Text`, and `TextInput` components. They have been deprecated since React Native v0.66. Changelog: [General][Removed] - Removed `Image.propTypes`, `Text.propTypes`, and `TextInput.propTypes`. Reviewed By: kacieb Differential Revision: D33750298 fbshipit-source-id: 085f83ad838196bdd531b097b8ce5957270c3ad1
1 parent cb42049 commit 3e229f2

File tree

5 files changed

+0
-26
lines changed

5 files changed

+0
-26
lines changed

BUCK

-1
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,6 @@ rn_library(
723723
"//xplat/js:node_modules__abort_19controller",
724724
"//xplat/js:node_modules__anser",
725725
"//xplat/js:node_modules__base64_19js",
726-
"//xplat/js:node_modules__deprecated_19react_19native_19prop_19types",
727726
"//xplat/js:node_modules__event_19target_19shim",
728727
"//xplat/js:node_modules__invariant",
729728
"//xplat/js:node_modules__nullthrows",

Libraries/Components/TextInput/TextInput.js

-7
Original file line numberDiff line numberDiff line change
@@ -1341,13 +1341,6 @@ const ExportedForwardRef: React.AbstractComponent<
13411341
);
13421342
});
13431343

1344-
/**
1345-
* Switch to `deprecated-react-native-prop-types` for compatibility with future
1346-
* releases. This is deprecated and will be removed in the future.
1347-
*/
1348-
ExportedForwardRef.propTypes =
1349-
require('deprecated-react-native-prop-types').TextInputPropTypes;
1350-
13511344
// $FlowFixMe[prop-missing]
13521345
ExportedForwardRef.State = {
13531346
currentlyFocusedInput: TextInputState.currentlyFocusedInput,

Libraries/Image/Image.android.js

-6
Original file line numberDiff line numberDiff line change
@@ -306,12 +306,6 @@ Image.queryCache = queryCache;
306306
* comment and run Flow. */
307307
Image.resolveAssetSource = resolveAssetSource;
308308

309-
/**
310-
* Switch to `deprecated-react-native-prop-types` for compatibility with future
311-
* releases. This is deprecated and will be removed in the future.
312-
*/
313-
Image.propTypes = require('deprecated-react-native-prop-types').ImagePropTypes;
314-
315309
const styles = StyleSheet.create({
316310
base: {
317311
overflow: 'hidden',

Libraries/Image/Image.ios.js

-6
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,6 @@ Image.queryCache = queryCache;
232232
* delete this comment and run Flow. */
233233
Image.resolveAssetSource = resolveAssetSource;
234234

235-
/**
236-
* Switch to `deprecated-react-native-prop-types` for compatibility with future
237-
* releases. This is deprecated and will be removed in the future.
238-
*/
239-
Image.propTypes = require('deprecated-react-native-prop-types').ImagePropTypes;
240-
241235
const styles = StyleSheet.create({
242236
base: {
243237
overflow: 'hidden',

Libraries/Text/Text.js

-6
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,6 @@ const Text: React.AbstractComponent<
189189

190190
Text.displayName = 'Text';
191191

192-
/**
193-
* Switch to `deprecated-react-native-prop-types` for compatibility with future
194-
* releases. This is deprecated and will be removed in the future.
195-
*/
196-
Text.propTypes = require('deprecated-react-native-prop-types').TextPropTypes;
197-
198192
/**
199193
* Returns false until the first time `newValue` is true, after which this will
200194
* always return true. This is necessary to lazily initialize `Pressability` so

0 commit comments

Comments
 (0)