0.19
Best compatibility: react-native@>=0.71
React 18 support
- [change] React 18
createRootsupport. - [change] Update
Animatedto support React 18, including newAnimatedColornode. - [change] Update
ScrollViewto 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
roleprop. - [add] Add support for
idprop. - [add] Add support for
tabIndexprop (only values0and-1). - [add] Support for
PointerEventprops. - [add] Add support for
pointerEventsstyle. - [add] Add support for
userSelectstyle. - [add] Add polyfilled support for W3C logical styles (e.g.,
insetInline.) - [add] Add
<Image>support fortintColorprop. - [add] Add
<TextInput>support forenterKeyHintprop. - [add] Add
<TextInput>support forinputModeprop. - [add] Add
<TextInput>support forreadOnlyprop. - [add] Add
<TextInput>support forrowsprop.
Deprecations
- [change] Deprecate
Touchable*components. UsePressable. - [change] Deprecate
Buttoncomponent. UsePressable. - [change] Deprecate
StyleSheet.compose(). Use style array syntax. - [change] Deprecate
accessibility*props. Usearia-*androleprops. - [change] Deprecate
nativeIdprop. Useidprop. - [change] Deprecate
focusableprops. UsetabIndexprop. - [change] Deprecate
pointerEventsprop. UsepointerEventsstyle. - [change] Deprecate
selectableprop. UseuserSelectstyle. - [change] Deprecate
fontVariantstyle array values. Use space-separated string values. - [change] Deprecate
textAlignVerticalstyle. UseverticalAlignstyle. - [change] Deprecate
transformstyle array values. Use space-separated string functions. - [change] Deprecate non-standard logical styles, e.g., 'marginStart'.
- [change] Deprecate
<Image>styleresizeMode. UseresizeModeprop. - [change] Deprecate
<Image>styletintColor. UsetintColorprop. - [change] Deprecate
<TextInput>propkeyboardType. UseinputModeprop. - [change] Deprecate
<TextInput>propreturnKeyType. UseenterKeyHintprop. - [change] Deprecate
<TextInput>propeditable. UsereadOnlyprop. - [change] Deprecate
<TextInput>propnumberOfLines. Userowsprop. - [change] Deprecate
BackHandlerAPI.
Breaking changes
- [change] Remove previously deprecated Android/iOS platform-specific exports.
- [change] Remove previously deprecated
setNativePropsAPI. - [change] Remove previously deprecated
AppState.removeListenerAPI. - [change]
<Text>isposition:relativeby default. - [change] Add task queue for
InteractionManager.
Fixes
- [fix]
Animatednow works with compiled styles. - [fix] Text inheritance of
textAlign.