RO

Routers

@react-navigation/routers

Routers to help build custom navigators

React Native Libraries
react
react-native
react-navigation
@react-navigation/routers
React Native Libraries
javascript
npm
frontend
open source
ui
Stars
687
Weekly
5.7M
Open issues
9
Bundle
~15 kB

Installation

npm install @react-navigation/routers

Code example

import { View, Text, StyleSheet } from "react-native";
import { Routers } from "@react-navigation/routers";

export function Example() {
  return (
    <View style={styles.box}>
      <Text style={styles.title}>Routers</Text>
      <Routers />
    </View>
  );
}

const styles = StyleSheet.create({
  box: { flex: 1, alignItems: "center", justifyContent: "center", gap: 8 },
  title: { fontSize: 18, fontWeight: "600" },
});

Pros & cons

Pros

  • Actively maintained by ericvicenti
  • 5.7M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~15 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • 9 open issues on GitHub

FAQs

Alternatives & similar libraries