Skip to content

v0.12.0

Choose a tag to compare

@Nlcke Nlcke released this 21 May 01:52
· 3 commits to master since this release

State:

  • simplified and doesn't contain stateKeys and focusKeys anymore which is good for serialization and logs
  • has updated focus system which uses new withFocus method instead of overloaded focus one
  • Config type becomes GouterConfig
  • Listener type becomes GouterListener
  • focusedIndex param added to constructor to improve serialization support
  • treats root states as focused
  • new setFocusedIndex method to make stack state focused via it's index
  • new clone method creates full copy
  • if state is already used in some stack it will be cloned for other stack

Navigation:

  • getNavigation function refactored to GouterNavigation class with auto bound methods and better description
  • new getFocusedState method to receive innermost focused state in root state
  • new replaceFocusedState method to replace innermost focused state in root state
  • fix create method to use provided stack param and accept new focusedIndex param
  • fix blockers to start checks from innermost focused state

Linking:

  • getLinking function refactored to GouterLinking class with auto bound methods and better description

Navigators:

  • optional parameters for each navigator
  • rewritten for new focus system

Native:

  • almost everything is made from scratch for reanimated module support and enhanced performance
  • many props and types are renamed to better convey the meaning
  • new hooks: useGouterState, useIsFocused, useIsStale, useIsRootFocused, useIsRootStale
  • new functions to animate screen components: getAnimatedValues, getReanimatedValues
  • native example is adopted for updated module and uses separate files for screens and configs

Other:

  • total README rewrite
  • better generated docs
  • jest is configured for tests