This release includes accessibility, measurement, performance and reliability improvements.
Breaking changes
- The measurements provided by
onLayout
have been fixed but if you are depending on bugs in the prior implementation you may experience breaking changes. The dimension values will now include border size; the position values will now include transforms. (93eb3f0) TextInput
events no longer include thewhich
property. (8925bf7)
New features
- Support for the new
accessibilityRole
andaccessibilityStates
props (4040151)
Fixes
The following fixes were included in 0.9.x patch releases, and I want to bring attention to them in these release notes. Thank you to the people who contributed these improvements.
- Fix a memory leak in the
applyLayout
registry (ad188a7 by @comp615) - Only observe resizes for elements making use of the 'onLayout' prop which improves
ResizeObserver
polyfill performance (d31bdf2 by @comp615) - Cache the
Clipboard.isAvailable()
value to avoid forced style calculation in Chrome (5855e55 by @comp615) - Improve the performance of the modality style helper (4b9a5fd and 1b7ce4e by @giuseppeg)
- Only call
node.getBoundingClientRect
ifnativeEvent.location{X,Y}
is accessed (40c433c by @hushicai) - Improve the performance of the style resolver for registered styles (2b77bfd by @sayrer)