
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
react-native-enroute
Advanced tools
Simple and fast React Native router based on react-enroute and native navigation
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.
yarn add react-native-enroute react-enroute react-native-screens @react-navigation/native @react-navigation/native-stack
import {Router} from 'react-enroute'
import {State, createStack} from 'react-native-enroute'
import {ThemeProvider, PreventRemoveProvider} from '@react-navigation/core'
import {DefaultTheme} from '@react-navigation/native'
function Routes({
location,
paths,
onNavigateBack,
}) {
const ShopTab = createStack({paths, onNavigateBack})
const QuestTab = createStack({paths, onNavigateBack})
return (
<ThemeProvider value={DefaultTheme}>
<PreventRemoveProvider>
<Router {...{location}}>
<ShopTab path='/shops'>
<ShopList/>
<Shop path=':id'/>
</ShopTab>
<QuestTab path='/quest'>
<AllQuestions/>
<Question path=':id'/>
</QuestTab>
</Router>
</PreventRemoveProvider>
</ThemeProvider>
)
}
function App() {
const routerState = useMemo(() => new State('/shops'), [])
const pop = useCallback(() => {
routerState.pop()
return true
}, [])
const openShop123 = useCallback(() => {
routerState.push('/shops/123')
}, [])
const resetToQuest1 = useCallback(() => {
routerState.reset('/quest/1')
}, [])
useEffect(() => {
BackHandler.addEventListener('hardwareBackPress', pop)
return () => {
BackHandler.removeEventListener('hardwareBackPress', pop)
}
}, [])
return (
<View>
<Button onPress={openShop123}/>
<Button onPress={resetToQuest1}/>
<Routes
location={routerState.current}
paths={routerState.paths}
onNavigateBack={pop}
/>
</View>
)
}
FAQs
Simple and fast React Native router based on react-enroute and native navigation
We found that react-native-enroute demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.