From 37c80fffb1f5427455b069c562c11ecd86fc717c Mon Sep 17 00:00:00 2001 From: fabriziobertoglio1987 Date: Wed, 8 Feb 2023 15:07:58 +0100 Subject: [PATCH 1/3] adding accessibilitySpan prop --- .../DeprecatedTextPropTypes.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/deprecated-react-native-prop-types/DeprecatedTextPropTypes.js b/deprecated-react-native-prop-types/DeprecatedTextPropTypes.js index 869013e..a41143a 100644 --- a/deprecated-react-native-prop-types/DeprecatedTextPropTypes.js +++ b/deprecated-react-native-prop-types/DeprecatedTextPropTypes.js @@ -41,6 +41,14 @@ const DeprecatedTextPropTypes = { accessibilityLabel: PropTypes.string, accessibilityLanguage: PropTypes.string, accessibilityRole: AccessibilityRolePropType, + accessibilitySpan: PropTypes.oneOf([ + | 'none' + | 'cardinal' + | 'ordinal' + | 'measure' + | 'telephone' + | 'verbatim' + ), accessibilityState: AccessibilityStatePropType, accessible: PropTypes.bool, adjustsFontSizeToFit: PropTypes.bool, From 42cc3be8a45ea8f599bfad65d21993b910a28050 Mon Sep 17 00:00:00 2001 From: fabriziobertoglio1987 Date: Thu, 9 Feb 2023 17:40:23 +0100 Subject: [PATCH 2/3] fix syntax --- deprecated-react-native-prop-types/DeprecatedTextPropTypes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deprecated-react-native-prop-types/DeprecatedTextPropTypes.js b/deprecated-react-native-prop-types/DeprecatedTextPropTypes.js index a41143a..bc0fd3a 100644 --- a/deprecated-react-native-prop-types/DeprecatedTextPropTypes.js +++ b/deprecated-react-native-prop-types/DeprecatedTextPropTypes.js @@ -48,7 +48,7 @@ const DeprecatedTextPropTypes = { | 'measure' | 'telephone' | 'verbatim' - ), + ]), accessibilityState: AccessibilityStatePropType, accessible: PropTypes.bool, adjustsFontSizeToFit: PropTypes.bool, From 77fbbeb35598febce354c79260a47965b8e375e9 Mon Sep 17 00:00:00 2001 From: fabriziobertoglio1987 Date: Thu, 9 Feb 2023 17:41:42 +0100 Subject: [PATCH 3/3] fix syntax --- .../DeprecatedTextPropTypes.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deprecated-react-native-prop-types/DeprecatedTextPropTypes.js b/deprecated-react-native-prop-types/DeprecatedTextPropTypes.js index bc0fd3a..2d3bdc7 100644 --- a/deprecated-react-native-prop-types/DeprecatedTextPropTypes.js +++ b/deprecated-react-native-prop-types/DeprecatedTextPropTypes.js @@ -42,12 +42,12 @@ const DeprecatedTextPropTypes = { accessibilityLanguage: PropTypes.string, accessibilityRole: AccessibilityRolePropType, accessibilitySpan: PropTypes.oneOf([ - | 'none' - | 'cardinal' - | 'ordinal' - | 'measure' - | 'telephone' - | 'verbatim' + 'none', + 'cardinal', + 'ordinal', + 'measure', + 'telephone', + 'verbatim', ]), accessibilityState: AccessibilityStatePropType, accessible: PropTypes.bool,