Skip to content
This repository was 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

Choose a tag to compare

@enrico-bardelli enrico-bardelli released this 01 Feb 13:15
71daeda

updateLayout is only called for components affected by navigation

added onEnterRelease event

Choose a tag to compare

@asgvard asgvard released this 07 Jul 16:02
9868d65
v2.12.8

Added onEnter release event (#98)

Exposed updateAllSpatialLayouts

Choose a tag to compare

@guilleccc guilleccc released this 01 Feb 13:25
a96f924

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

New "blockNavigationOut" prop

Choose a tag to compare

@asgvard asgvard released this 25 Aug 11:55
c625b54

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

Choose a tag to compare

@asgvard asgvard released this 17 Aug 16:10

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

added "throttleKeypresses" config

Choose a tag to compare

@asgvard asgvard released this 20 May 11:36
v2.12.3

Changelog minor fix

Changed the recalculation of coordinates

Choose a tag to compare

@asgvard asgvard released this 14 May 12:55
f74bad2

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

Fixed regression with autoRestoreFocus

Choose a tag to compare

@asgvard asgvard released this 16 Mar 15:25
v2.12.1

Fixed regression with autoRestoreFocus

AutoRestoreFocus property

Choose a tag to compare

@asgvard asgvard released this 16 Mar 14:01
737dec0

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

Choose a tag to compare

@asgvard asgvard released this 02 Mar 09:30
43a6b34
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