Gathering detailed insights and metrics for react-native-enroute
Gathering detailed insights and metrics for react-native-enroute
Gathering detailed insights and metrics for react-native-enroute
Gathering detailed insights and metrics for react-native-enroute
npm install react-native-enroute
Typescript
Module System
Node Version
NPM Version
38
Supply Chain
50
Quality
66.3
Maintenance
50
Vulnerability
94.1
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
43 Commits
1 Forks
1 Watchers
1 Branches
2 Contributors
Updated on Oct 25, 2022
Latest Version
7.1.0
Package Id
react-native-enroute@7.1.0
Unpacked Size
7.06 kB
Size
2.77 kB
File Count
7
NPM Version
8.19.2
Node Version
19.0.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
2
Simple and fast React Native router based on react-enroute and native navigation
To be honest it is not real router at all. This package contains some wrappers for using react-enroute with react-native-screens. Library plays well with Redux and MobX.
1yarn add react-native-enroute react-enroute react-native-screens @react-navigation/native
1import {Router} from 'react-enroute' 2import {State, createStack} from 'react-native-enroute' 3 4 5function Routes({ 6 location, 7 paths, 8 onNavigateBack, 9}) { 10 const ShopTab = createStack({paths, onNavigateBack}) 11 const QuestTab = createStack({paths, onNavigateBack}) 12 13 return ( 14 <Router {...{location}}> 15 <ShopTab path='/shops'> 16 <ShopList/> 17 <Shop path=':id'/> 18 </ShopTab> 19 <QuestTab path='/quest'> 20 <AllQuestions/> 21 <Question path=':id'/> 22 </QuestTab> 23 </Router> 24 ) 25} 26 27function App() { 28 const routerState = useMemo(() => new State('/shops'), []) 29 const pop = useCallback(() => { 30 routerState.pop() 31 return true 32 }, []) 33 34 const openShop123 = useCallback(() => { 35 routerState.push('/shops/123') 36 }, []) 37 const resetToQuest1 = useCallback(() => { 38 routerState.reset('/quest/1') 39 }, []) 40 41 useEffect(() => { 42 BackHandler.addEventListener('hardwareBackPress', pop) 43 44 return () => { 45 BackHandler.removeEventListener('hardwareBackPress', pop) 46 } 47 }, []) 48 49 return ( 50 <View> 51 <Button onPress={openShop123}/> 52 <Button onPress={resetToQuest1}/> 53 <Routes 54 location={routerState.current} 55 paths={routerState.paths} 56 onNavigateBack={pop} 57 /> 58 </View> 59 ) 60}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 1/27 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
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license 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-05-05
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