Skip to content

Commit

Permalink
[prop-types] Update DeprecatedViewStylePropTypes for 0.71
Browse files Browse the repository at this point in the history
  • Loading branch information
yungsters committed Dec 3, 2022
1 parent 9476bc6 commit c79af91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deprecated-react-native-prop-types/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ ImagePropTypes`
- Removed deprecated props: `decomposedMatrix`, `rotation`, `scaleX`, `scaleY`, `transformMatrix`, `translateX`, `translateY`
- Improvements to `ViewPropTypes`
- Changed `hitSlop` to accept a number.
- Added `accessibilityLabelledBy`, `accessibilityLanguage`, `aria-busy`, `aria-checked`, `aria-disabled`, `aria-expanded`, `aria-hidden`, `aria-label`, `aria-labelledby`, `aria-live`, `aria-modal`, `aria-selected`, `aria-valuemax`, `aria-valuemin`, `aria-valuenow`, `aria-valuetext`, `id`, `role`, and `tabIndex.`
- Added `borderCurve` and `pointerEvents` to `style`.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const DeprecatedViewStylePropTypes = {
borderBottomStartRadius: PropTypes.number,
borderBottomWidth: PropTypes.number,
borderColor: DeprecatedColorPropType,
borderCurve: PropTypes.oneOf(['circular', 'continuous']),
borderEndColor: DeprecatedColorPropType,
borderLeftColor: DeprecatedColorPropType,
borderLeftWidth: PropTypes.number,
Expand All @@ -48,6 +49,7 @@ const DeprecatedViewStylePropTypes = {
borderWidth: PropTypes.number,
elevation: PropTypes.number,
opacity: PropTypes.number,
pointerEvents: PropTypes.oneOf(['auto', 'box-none', 'box-only', 'none']),
};

module.exports = DeprecatedViewStylePropTypes;

0 comments on commit c79af91

Please sign in to comment.