Release 6.2.0
6.2.0 (2021-10-23)
This release is focused on accessibility! Moreover, it empowers model-based custom rendering which can now define props passed to Text and View elements of renderers. Check out our blog post for a full dive into this release features.
Bug Fixes
- inaccurate typing for HTMLElementModelRecord (bd5dfa6)
- pass
borderlessprop to customGenericPressable(f06af7a) - never assume the definition of
__DEV__in the global scope (f9bb9e9) - a11y: anchors should not be set with a11y role "link" when empty href (dd988fc)
- a11y: anchors are not accessible anymore when
hrefis empty or absent (4e1f2f4)
Features
- new
getNativePropsForTnodeutil method (d983d0d) - css: support
user-selectCSS property (8442b2f) - a11y: support
aria-labelandaria-roleHTML attributes (2b27f00) - a11y: add accessibilityRole="header" to headings elements (h1...h6) (1c79bc3)
- new
reactNativePropsandgetReactNativePropsinHTMLElementModel, this little change gives model-based custom rendering considerably more leverage. (4ee1646) - deprecate
getUADerivedStyleFromAttributesin favor ofgetMixedUAStylesinHTMLElementModel, which allows access to the underlyingTNodeand again empowers model-based custom rendering. - a11y: whatwg-compliant accessibility for images (7fc2907)
- a11y: custom renderers passed
onPressprop now have a11y roles (11723f0) - a11y: support aria-role="search" and aria-role="presentation" attributes (c552fe4)
- allow
HTMLElementModel.extendto take a merge function (9b3a007) - support
onPressfrom element models native props (7dc5577)