Best compatibility: react-native@>=0.71
React 18 support
- [change] React 18
createRoot
support. - [change] Update
Animated
to support React 18, including newAnimatedColor
node. - [change] Update
ScrollView
to Class component for React 18 support.
New features
- [add] Map
'button'
and'paragraph'
role to equivalent semantic HTML elements. - [add] Add support for
aria-*
props. - [add] Add support for
role
prop. - [add] Add support for
id
prop. - [add] Add support for
tabIndex
prop (only values0
and-1
). - [add] Support for
PointerEvent
props. - [add] Add support for
pointerEvents
style. - [add] Add support for
userSelect
style. - [add] Add polyfilled support for W3C logical styles (e.g.,
insetInline
.) - [add] Add
<Image>
support fortintColor
prop. - [add] Add
<TextInput>
support forenterKeyHint
prop. - [add] Add
<TextInput>
support forinputMode
prop. - [add] Add
<TextInput>
support forreadOnly
prop. - [add] Add
<TextInput>
support forrows
prop.
Deprecations
- [change] Deprecate
Touchable*
components. UsePressable
. - [change] Deprecate
Button
component. UsePressable
. - [change] Deprecate
StyleSheet.compose()
. Use style array syntax. - [change] Deprecate
accessibility*
props. Usearia-*
androle
props. - [change] Deprecate
nativeId
prop. Useid
prop. - [change] Deprecate
focusable
props. UsetabIndex
prop. - [change] Deprecate
pointerEvents
prop. UsepointerEvents
style. - [change] Deprecate
selectable
prop. UseuserSelect
style. - [change] Deprecate
fontVariant
style array values. Use space-separated string values. - [change] Deprecate
textAlignVertical
style. UseverticalAlign
style. - [change] Deprecate
transform
style array values. Use space-separated string functions. - [change] Deprecate non-standard logical styles, e.g., 'marginStart'.
- [change] Deprecate
<Image>
styleresizeMode
. UseresizeMode
prop. - [change] Deprecate
<Image>
styletintColor
. UsetintColor
prop. - [change] Deprecate
<TextInput>
propkeyboardType
. UseinputMode
prop. - [change] Deprecate
<TextInput>
propreturnKeyType
. UseenterKeyHint
prop. - [change] Deprecate
<TextInput>
propeditable
. UsereadOnly
prop. - [change] Deprecate
<TextInput>
propnumberOfLines
. Userows
prop. - [change] Deprecate
BackHandler
API.
Breaking changes
- [change] Remove previously deprecated Android/iOS platform-specific exports.
- [change] Remove previously deprecated
setNativeProps
API. - [change] Remove previously deprecated
AppState.removeListener
API. - [change]
<Text>
isposition:relative
by default. - [change] Add task queue for
InteractionManager
.
Fixes
- [fix]
Animated
now works with compiled styles. - [fix] Text inheritance of
textAlign
.