Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. React Native
  3. react-native-router-flux

react-native-router-flux

MITJavaScript4.3.1

A declarative API wrapper for React Navigation that centralizes route definitions and simplifies navigation in React Native apps.

GitHubGitHub
8.9k stars2.1k forks0 contributors

What is react-native-router-flux?

React Native Router Flux is a routing library for React Native that provides a declarative API wrapper around React Navigation. It simplifies navigation by allowing developers to define all routes centrally and navigate between screens with an intuitive API. The library addresses the complexity of managing navigation state and transitions in React Native applications.

Target Audience

React Native developers building mobile applications who want a more structured and declarative approach to navigation than what React Navigation offers out-of-the-box. It's particularly useful for teams managing complex navigation flows or integrating with state management libraries like MobX or Redux.

Value Proposition

Developers choose React Native Router Flux for its centralized route configuration, simplified navigation API, and additional features like lifecycle hooks and nav bar customization that extend React Navigation. It reduces boilerplate and makes navigation logic more maintainable and testable.

Overview

The first declarative React Native router

Use Cases

Best For

  • Defining all app routes in a single centralized component
  • Simplifying navigation calls with a clean API like Actions.home()
  • Implementing authentication flows with onEnter/onExit handlers
  • Customizing navigation bars beyond React Navigation's defaults
  • Integrating navigation state with MobX or Redux stores
  • Managing complex conditional transitions between screens

Not Ideal For

  • Projects that require immediate access to the latest React Navigation features, as RNRF versions often lag behind upstream updates.
  • Apps with very simple, linear navigation where React Navigation alone is sufficient and the additional abstraction adds unnecessary complexity.
  • Teams that prefer imperative navigation control or need to heavily customize React Navigation's native API without an intermediary layer.
  • Large organizations with strict dependency management policies, due to RNRF's complex version matrix and multiple native library requirements.

Pros & Cons

Pros

Centralized Route Management

Define all scenes in a single React component, making the navigation structure easy to visualize and maintain, as shown in the usage example where Router wraps all Scene definitions.

Intuitive Navigation API

Provides simple methods like Actions.home() and Actions.pop(), reducing boilerplate compared to React Navigation's native API and streamlining navigation calls from anywhere in the app.

Powerful Lifecycle Hooks

Supports onEnter, onExit, success, and failure handlers, enabling seamless implementation of authentication flows and conditional transitions directly in route definitions.

Enhanced Nav Bar Customization

Offers flexible navigation bar customization beyond React Navigation's defaults, addressing known limitations as mentioned in the README's motivation section.

State Management Integration

Friendly with MobX and Redux, allowing navigation state to be observed and managed from business logic layers, which is highlighted in the philosophy and features.

Cons

Version Fragmentation Headaches

Multiple versions tied to different React Navigation releases (e.g., v4.x for React Navigation v4.x, v5 in alpha), leading to confusion and challenging upgrades, as admitted in the IMPORTANT NOTES section.

Additional Setup Burden

Requires installing several native dependencies like react-native-reanimated and react-native-gesture-handler, adding complexity to project initialization compared to bare React Navigation.

Inherited Upstream Limitations

Directly inherits all bugs and limitations from React Navigation, so any issues in the underlying library affect RNRF without workarounds, as stated in the README.

Documentation Pitfalls

The README includes 'Helpful tips for gotchas,' indicating that features like back button handling or HOC integration are under-documented and require community knowledge to implement correctly.

Frequently Asked Questions

Quick Stats

Stars8,911
Forks2,062
Contributors0
Open Issues280
Last commit3 years ago
CreatedSince 2015

Tags

#declarative-routing#react-native#javascript#react-navigation#mobx#mobile-apps#state-management#router#navigation#redux

Built With

R
Redux
J
JavaScript
M
MobX
R
React Navigation
R
React Native

Included in

React Native35.6k
Auto-fetched 1 day ago

Related Projects

react-navigationreact-navigation

Routing and navigation for React Native and Web apps

Stars24,509
Forks5,144
Last commit1 day ago
react-native-navigationreact-native-navigation

A complete native navigation solution for React Native

Stars13,172
Forks2,622
Last commit2 days ago
kittenTrickskittenTricks

React Native starter kit with over 40 screens and modern Light and Dark theme for creating stunning cross-platform mobile applications.

Stars7,262
Forks985
Last commit2 years ago
native-navigationnative-navigation

Native navigation library for React Native applications

Stars3,126
Forks173
Last commit11 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub