Skip to content

0.19

Latest
Compare
Choose a tag to compare
@necolas necolas released this 27 Mar 17:45
· 53 commits to master since this release

Best compatibility: react-native@>=0.71

React 18 support

  • [change] React 18 createRoot support.
  • [change] Update Animated to support React 18, including new AnimatedColor 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 values 0 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 for tintColor prop.
  • [add] Add <TextInput> support for enterKeyHint prop.
  • [add] Add <TextInput> support for inputMode prop.
  • [add] Add <TextInput> support for readOnly prop.
  • [add] Add <TextInput> support for rows prop.

Deprecations

  • [change] Deprecate Touchable* components. Use Pressable.
  • [change] Deprecate Button component. Use Pressable.
  • [change] Deprecate StyleSheet.compose(). Use style array syntax.
  • [change] Deprecate accessibility* props. Use aria-* and role props.
  • [change] Deprecate nativeId prop. Use id prop.
  • [change] Deprecate focusable props. Use tabIndex prop.
  • [change] Deprecate pointerEvents prop. Use pointerEvents style.
  • [change] Deprecate selectable prop. Use userSelect style.
  • [change] Deprecate fontVariant style array values. Use space-separated string values.
  • [change] Deprecate textAlignVertical style. Use verticalAlign style.
  • [change] Deprecate transform style array values. Use space-separated string functions.
  • [change] Deprecate non-standard logical styles, e.g., 'marginStart'.
  • [change] Deprecate <Image> style resizeMode. Use resizeMode prop.
  • [change] Deprecate <Image> style tintColor. Use tintColor prop.
  • [change] Deprecate <TextInput> prop keyboardType. Use inputMode prop.
  • [change] Deprecate <TextInput> prop returnKeyType. Use enterKeyHint prop.
  • [change] Deprecate <TextInput> prop editable. Use readOnly prop.
  • [change] Deprecate <TextInput> prop numberOfLines. Use rows 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> is position:relative by default.
  • [change] Add task queue for InteractionManager.

Fixes

  • [fix] Animated now works with compiled styles.
  • [fix] Text inheritance of textAlign.