- (Breaking) bump dependency on
@react-native/normalize-colors
to^0.73.0
- this requires Node >= 18 - Explicitly require Node >= 18 via
engines
- Use semver ranges for prop-types and invariant deps.
- Restricted
@react-native/normalize-colors
dependency to<0.73.0
to avoid a transitive Node >= 18 requirement.
- Added
@flow
so all modules can be imported without suppressing [untyped-import]
- Add iOS 17 textContentType types (#23)
- Added logical inset properties:
inset
,insetBlock
,insetBlockEnd
,insetBlockStart
,insetInline
,insetInlineEnd
,insetInlineStart
(#12) - Added logical border properties:
borderEndEndRadius
,borderEndStartRadius
,borderStartEndRadius
,borderStartStartRadius
(#14) - Fixed
aria-live
declaration. (#20)
- Compatible with React Native 0.72
- Updated dependency from
@react-native/normalize-color
to@react-native/normalize-colors
due to upstream renaming of such dependency, needed for compatibility with 0.72 - This major bump is needed as
react-native@0.71
will still use@react-native/normalize-color
and we want users of 0.71 to continue depending on 3.0.1.
- Compatible with React Native 0.71
- Improvements to
ImagePropTypes
- Merged Android and default definitions.
- Included all of
ViewPropTypes
. - Improved types for
defaultSource
andsource
. - Added
alt
,crossOrigin
,height
,referrerPolicy
,src
,srcSet
,tintColor
, andwidth
. - Added
objectFit
tostyle
.
- Improvements to
LayoutPropTypes
- Changed
aspectRatio
so it can be a string ratio. - Added
{margin,padding}{Block,Inline}{,End,Start}
. - Added
columnGap
,gap
, androwGap
.
- Changed
- Improvements to
TextInputPropTypes
- Renamed
autoCompleteType
toautoComplete
. - Added many new valid values for
autoComplete
. - Added
cursorColor
,enterKeyHint
,inputMode
,lineBreakStrategyIOS
,readOnly
,rows
, andsubmitBehavior
.
- Renamed
- Improvements to
ViewAccessibility
- Added many new valid values for
accessibilityRole
. - Changed
accessibilityActions
to consist of objects, not strings.
- Added many new valid values for
- Improvements to
TextPropTypes
- Added
accessibilityActions
,accessibilityHint
,accessibilityLabel
,accessibilityLanguage
,accessibilityRole
,accessibilityState
,aria-busy
,aria-checked
,aria-disabled
,aria-expanded
,aria-label
,aria-labelledby
,aria-selected
,dynamicTypeRamp
,id
,lineBreakStrategyIOS
,onAccessibilityAction
, androle
. - Added
onPressIn
,onPressOut
,onResponderGrant
,onResponderMove
,onResponderRelease
,onResponderTerminate
,onResponderTerminationRequest
,onStartShouldSetResponder
,onMoveShouldSetResponder
, andonTextLayout
. - Added numeric and named values for
fontWeight
instyle
. - Added string and stylistic values for
fontVariant
instyle
. - Added
userSelect
andverticalAlign
instyle
.
- Added
- Improvements to
TransformPropTypes
- Removed deprecated props:
decomposedMatrix
,rotation
,scaleX
,scaleY
,transformMatrix
,translateX
,translateY
- Removed deprecated props:
- 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
,focusable
,id
,nativeBackgroundAndroid
,nativeForegroundAndroid
,onAccessibilityEscape
,onClick
,role
, andtabIndex.
- Added mouse, pointer, focus, and touch event props.
- Added
borderCurve
andpointerEvents
tostyle
.
- Changed