Gathering detailed insights and metrics for react-navigation-mobx-helpers
Gathering detailed insights and metrics for react-navigation-mobx-helpers
npm install react-navigation-mobx-helpers
Typescript
Module System
Node Version
NPM Version
25.4
Supply Chain
49.6
Quality
64.8
Maintenance
50
Vulnerability
93.8
License
TypeScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
25,016
Last Day
5
Last Week
13
Last Month
96
Last Year
564
MIT License
27 Stars
30 Commits
5 Forks
2 Watchers
1 Branches
3 Contributors
Updated on Feb 25, 2023
Latest Version
2.0.1
Package Id
react-navigation-mobx-helpers@2.0.1
Unpacked Size
10.55 kB
Size
2.76 kB
File Count
5
NPM Version
6.4.1
Node Version
11.4.0
Cumulative downloads
Total Downloads
Last Day
150%
5
Compared to previous day
Last Week
-31.6%
13
Compared to previous week
Last Month
336.4%
96
Compared to previous month
Last Year
-80.3%
564
Compared to previous year
2
2
2
React-Navigation bindings for MobX
1npm install react-navigation-mobx-helpers --save
1import React from 'react'; 2import { Provider, inject, observer } from 'mobx-react'; 3import { StackNavigator } from 'react-navigation'; 4import NavigationStore from 'react-navigation-mobx-helpers'; 5 6const RootNavigator = StackNavigator(RouteConfigs); 7 8const rootNavigation = new NavigationStore(); 9 10class Root extends React.Component { 11 render() { 12 return ( 13 <Provider rootNavigation={rootNavigation}> 14 <App /> 15 </Provider> 16 ); 17 } 18} 19 20@inject('rootNavigation') 21@observer 22class App extends React.Component { 23 render() { 24 const { rootNavigation } = this.props; 25 return <RootNavigator ref={rootNavigation.createRef} />; 26 } 27}
Action | Parameter | Description |
---|---|---|
createRef | ref: React.Component | Save an instance of navigation to store |
dispatch | action: NavigationAction | Send an action to router |
getParam | paramName: string, fallback?: NavigationParams | Get a specific param with fallback |
setParams | newParams: NavigationParams | Make changes to route's params |
navigate | { routeName: string, params?: NavigationParams, action?: NavigationAction, key?: string } OR routeName: string, params?: NavigationParams, action?: NavigationAction | Go to another screen, figures out the action it needs to take to do it |
push | routeName: string, params?: NavigationParams, action?: NavigationAction | Navigate forward to new route in stack |
replace | routeName: string, params?: NavigationParams, action?: NavigationAction | Replace the current route with a new one |
goBack | routeKey?: string | null | Close active screen and move back in the stack |
pop | n?: number, params?: { immediate?: boolean } | Go back in the stack |
popToTop | params?: { immediate?: boolean } | Go to the top of the stack |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
6 existing vulnerabilities detected
Details
Reason
Found 2/28 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
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-02-10
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