Repository navigation
v0.12.0
State:
- simplified and doesn't contain stateKeys and focusKeys anymore which is good for serialization and logs
- has updated focus system which uses new
withFocusmethod instead of overloadedfocusone Configtype becomesGouterConfigListenertype becomesGouterListenerfocusedIndexparam added to constructor to improve serialization support- treats root states as focused
- new
setFocusedIndexmethod to make stack state focused via it's index - new
clonemethod creates full copy - if state is already used in some stack it will be cloned for other stack
Navigation:
getNavigationfunction refactored toGouterNavigationclass with auto bound methods and better description- new
getFocusedStatemethod to receive innermost focused state in root state - new
replaceFocusedStatemethod to replace innermost focused state in root state - fix
createmethod to use provided stack param and accept newfocusedIndexparam - fix
blockers to start checks from innermost focused state
Linking:
getLinkingfunction refactored toGouterLinkingclass 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