Gathering detailed insights and metrics for @meth/react-navigation-redux-helpers
Gathering detailed insights and metrics for @meth/react-navigation-redux-helpers
Gathering detailed insights and metrics for @meth/react-navigation-redux-helpers
Gathering detailed insights and metrics for @meth/react-navigation-redux-helpers
Redux middleware and utils for React Navigation
npm install @meth/react-navigation-redux-helpers
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
295 Stars
93 Commits
43 Forks
25 Watchers
3 Branches
32 Contributors
Updated on Apr 16, 2025
Latest Version
1.1.1
Package Id
@meth/react-navigation-redux-helpers@1.1.1
Unpacked Size
16.76 kB
Size
4.95 kB
File Count
12
NPM Version
5.6.0
Node Version
8.10.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
3
This branch is used to publish to the @meth/react-navigation-redux-helpers module
This repo contains Redux middleware and utils for React Navigation.
1yarn add react-navigation-redux-helpers
or
1npm install --save react-navigation-redux-helpers
Consult the React Navigation docs for how to use this library.
createReactNavigationReduxMiddleware
(required)1function createReactNavigationReduxMiddleware<State: {}>( 2 key: string, 3 navStateSelector: (state: State) => NavigationState, 4): Middleware<State, *, *>;
key
needs to be unique for the Redux store. Most people only have one store, so can use any string (eg. "root"
), as long as it's consistent across all calls.navStateSelector
selects the navigation state from your store.initializeListeners
(required)1function initializeListeners(key: string, state: NavigationState): void;
componentDidMount
. Your "main component" is the one that wraps your root navigator.key
needs to be consistent with other calls for the same store. See above.state
is the navigation state for your app.createNavigationPropConstructor
(required, react-navigation@2.0.3
or later only)1function createNavigationPropConstructor( 2 key: string, 3): ( 4 dispatch: NavigationDispatch, 5 state: NavigationState, 6) => NavigationScreenProp<NavigationState>;
createNavigationPropConstructor
in the global scope to create a prop constructor.key
needs to be consistent with other calls for the same store. See above.render
.dispatch
is your Redux store's dispatch function.state
is the navigation state for your app.createReduxBoundAddListener
(alternative to createNavigationPropConstructor
)1function createReduxBoundAddListener( 2 key: string, 3): ( 4 eventName: string, 5 handler: NavigationEventCallback 6) => NavigationEventSubscription;
createNavigationPropConstructor
.createReduxBoundAddListener
in the global scope to construct an addListener
function.key
needs to be consistent with other calls for the same store. See above.addListener
is a necessary property in the navigation
object that you need to pass as a prop into your root navigator.createDidUpdateCallback
(optional)1function createDidUpdateCallback(key: string): () => void;
didFocus
) for a screen that hasn't been rendered yet won't trigger addListener
.componentDidMount
can call addListener
.key
needs to be consistent with other calls for the same store. See above.componentDidUpdate
.createNavigationReducer
(optional)1function createNavigationReducer(navigator: Navigator): Reducer<*, *>;
createNavigationReducer
in the global scope to construct a navigation reducer.navigator.router.getStateForAction
, which you can call directly if you'd prefer.navigator
is your root navigator (React component).combineReducers
).No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
5 existing vulnerabilities detected
Details
Reason
project is archived
Details
Reason
Found 2/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More