
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@sirou/react-native
Advanced tools
React Native adapter for Sirou — type-safe navigation with React Navigation v6+
The React Native adapter for Sirou. Integrates with React Navigation v6+ to provide type-safe navigation, deep linking, and a consistent routing API across web and mobile.
npm install @sirou/react-native @sirou/core @react-navigation/native @react-navigation/stack
// src/router.ts
import { createSirouNativeRouter } from "@sirou/react-native";
import { routes } from "./routes";
export const router = createSirouNativeRouter(routes);
// App.tsx
import { NavigationContainer } from "@react-navigation/native";
import { SirouNativeProvider } from "@sirou/react-native";
import { router } from "./router";
export default function App() {
return (
<NavigationContainer>
<SirouNativeProvider router={router}>
<RootNavigator />
</SirouNativeProvider>
</NavigationContainer>
);
}
createSirouNativeRouter(config)Creates an Sirou router instance backed by React Navigation.
const router = createSirouNativeRouter(routes);
useSirouNativeRouter()Returns the router instance in any component.
import { useSirouNativeRouter } from "@sirou/react-native";
const router = useSirouNativeRouter<typeof routes>();
router.go("profile", { id: "user123" });
useSirouParams(routeName)Returns typed params for the current screen.
import { useSirouParams } from "@sirou/react-native";
function ProfileScreen() {
const { id } = useSirouParams("profile");
return <Text>User: {id}</Text>;
}
generateDeepLinkConfig(config)Automatically generates a React Navigation linking configuration from your route schema. This enables deep linking without manual configuration.
import { generateDeepLinkConfig } from '@sirou/react-native';
import { routes } from './routes';
const linking = {
prefixes: ['myapp://', 'https://myapp.com'],
config: generateDeepLinkConfig(routes),
};
// Pass to NavigationContainer
<NavigationContainer linking={linking}>
MIT
FAQs
React Native adapter for Sirou — type-safe navigation with React Navigation v6+
We found that @sirou/react-native 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.