Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Releases: NoriginMedia/react-spatial-navigation

updateLayout is only called for components affected by navigation

01 Feb 13:15
71daeda
Compare
Choose a tag to compare

updateLayout is only called for components affected by navigation

added onEnterRelease event

07 Jul 16:02
9868d65
Compare
Choose a tag to compare
v2.12.8

Added onEnter release event (#98)

Exposed updateAllSpatialLayouts

01 Feb 13:25
a96f924
Compare
Choose a tag to compare

Added updateAllSpatialLayouts to allow updating components layout at any time that is required.

New "blockNavigationOut" prop

25 Aug 11:55
c625b54
Compare
Choose a tag to compare

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

17 Aug 16:10
Compare
Choose a tag to compare

This release includes few changes that should fix issues when using this library in SSR environments and in React Native environments.

added "throttleKeypresses" config

20 May 11:36
Compare
Choose a tag to compare
v2.12.3

Changelog minor fix

Changed the recalculation of coordinates

14 May 12:55
f74bad2
Compare
Choose a tag to compare

Now it is calculated right before it is used in smartNavigate, instead of after setFocus.

Fixed regression with autoRestoreFocus

16 Mar 15:25
Compare
Choose a tag to compare
v2.12.1

Fixed regression with autoRestoreFocus

AutoRestoreFocus property

16 Mar 14:01
737dec0
Compare
Choose a tag to compare

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

02 Mar 09:30
43a6b34
Compare
Choose a tag to compare
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