This repository has been archived by the owner on May 5, 2023. It is now read-only.
Releases: NoriginMedia/react-spatial-navigation
Releases · NoriginMedia/react-spatial-navigation
updateLayout is only called for components affected by navigation
updateLayout is only called for components affected by navigation
added onEnterRelease event
v2.12.8 Added onEnter release event (#98)
Exposed updateAllSpatialLayouts
Added updateAllSpatialLayouts
to allow updating components layout at any time that is required.
New "blockNavigationOut" prop
New prop allows to block navigation inside some container so it doesn't go out and focus other items.
SSR support + other RN environment fixes
This release includes few changes that should fix issues when using this library in SSR environments and in React Native environments.
added "throttleKeypresses" config
v2.12.3 Changelog minor fix
Changed the recalculation of coordinates
Now it is calculated right before it is used in smartNavigate, instead of after setFocus.
Fixed regression with autoRestoreFocus
v2.12.1 Fixed regression with autoRestoreFocus
AutoRestoreFocus property
Added autoRestoreFocus
property to control whether component should restore focus on the first available child in case of currently focused child gets unmounted
Added `details` object to propagate extra data through the navigation flow and callbacks e.g. `event` object from key presses
event propagation (#60) * added event object parameter to setFocus and navigateByDirection added event object parameter to onBecameBlurred and onBecameFocused onBecameBlurred and onBecameFocused called synchronously with navigation * fix condition for setCurrentFocusedKey * changed specific event parameter to generic details object