0.15.0
This release introduces improved accessibility features and new documentation. It includes relatively minor breaking changes.
Breaking changes
- React 17 is a peer dependency.
- The
I18nManagerAPI has removed theisRTLanddoLeftAndRightSwapInRTLproperties. They must now be accessed using thegetConstants()method, which returns an object with the same properties. This was an undocumented breaking change in a previous version of React Native. - The
focusableprop now determines whether an element appears in the keyboard tab flow. - The
hrefAttrsprop has been added toTextandView. The value is an object withrel,target, anddownloadproperties. This replaces the undocumentedrelandtargetprops. - The automatic addition of
rel="noopener"to anchors has been removed. - The
Linking.openURL(url)API now opens the url in new tab. - The
LinkingAPI now includes theaddEventListenermethods. - The deprecated
importantForAccessibilityprop has been removed. UseaccessibilityHiddeninstead. - The undocumented
data-focusableattribute has also been removed from rendered DOM nodes. - The undocumented
disabledprop has been removed fromViewandText; useaccessibilityDisabledinstead.
New features
- Pressable has added
onHoverInandonHoverOutprops. - All ARIA properties are now supported via equivalent
accessibility*props. The undocumented support foraria-*prop forwarding remains and will be removed in a future version. - Additional
accessibilityRolevalues are mapped to HTML element equivalents. - CSS
aspectRatioproperty is now available in browsers with support.
Deprecations
- The
accessibleprop is deprecated and will be removed in the next minor release. React Native for Web will follow React Native for Windows/macOS in removing this prop. Usefocusableinstead.
Documentation
This release will include a rewrite of the documentation site and interactive examples.
https://necolas.github.io/react-native-web/
The examples will be embedded in relevant pages via a Next.js-powered codesandbox, making it easy for people to fork the example app from their browsers.
