All Projects → lucarge → react-router-reanimated

lucarge / react-router-reanimated

Licence: MIT license
Easily bring animations and gesture-enabled navigation to your React Native app built with React Router.

Programming Languages

java
68154 projects - #9 most used programming language
objective c
16641 projects - #2 most used programming language
typescript
32286 projects
ruby
36898 projects - #4 most used programming language
javascript
184084 projects - #8 most used programming language
Starlark
911 projects

Projects that are alternatives of or similar to react-router-reanimated

react
react 项目骨架
Stars: ✭ 12 (-29.41%)
Mutual labels:  react-router
fifa
React + Node.js + socket.io -- A turn-based multiplayer game-client based on FIFA
Stars: ✭ 26 (+52.94%)
Mutual labels:  react-router
cra-flask
Unejected create-react-app ui, flask api with token authentication
Stars: ✭ 20 (+17.65%)
Mutual labels:  react-router
socialApp-MERN
Social Networking web app similar to Instagram.
Stars: ✭ 35 (+105.88%)
Mutual labels:  react-router
react-authentication-in-depth
Example of User Authentication using React with React Router and AWS Amplify
Stars: ✭ 61 (+258.82%)
Mutual labels:  react-router
douban-movie-electron
This is electron app for douban movie
Stars: ✭ 19 (+11.76%)
Mutual labels:  react-router
React-Playground
Learning reactjs from the ground up (router, redux, thunk, hooks, context, portals, and functional components)
Stars: ✭ 15 (-11.76%)
Mutual labels:  react-router
reactplate
[unmaintained] 🚀 A Minimal Setup & Fast Boilerplate for React.js with Vite.
Stars: ✭ 25 (+47.06%)
Mutual labels:  react-router
material-ui-Link-within-MenuItem
Example for how to use `react-router/Link` within `material-ui/MenuItem`
Stars: ✭ 19 (+11.76%)
Mutual labels:  react-router
react-passage
Link and Redirect to routes safely in your react applications 🌄
Stars: ✭ 61 (+258.82%)
Mutual labels:  react-router
react-spa-template
This is a sample template for single page applications built using React + Router to work with webpack dev server
Stars: ✭ 19 (+11.76%)
Mutual labels:  react-router
Client
TRPG即时IM通讯软件客户端,基于React 与 React Native + Redux技术
Stars: ✭ 118 (+594.12%)
Mutual labels:  react-router
README-ecoleta
🎁 Três modelos de README com o Projeto criados para o blog da @Rocketseat 🚀
Stars: ✭ 179 (+952.94%)
Mutual labels:  react-router
PERN-Advanced-Starter
Advanced PERN stack starter kit (PostgresSQL, Express, React, & Node), complete with ESLint, Webpack 4, Redux, React-Router, and Material-UI kit.
Stars: ✭ 51 (+200%)
Mutual labels:  react-router
io-dev
IO Dev is a portfolio website to showcase the work and projects I have created
Stars: ✭ 22 (+29.41%)
Mutual labels:  react-router
react-laravel
A simple crud based laravel app to learn how to use react with laravel.
Stars: ✭ 43 (+152.94%)
Mutual labels:  react-router
typesafe-react-router
Utility functions to help facilitate type-safe routing with react-router
Stars: ✭ 90 (+429.41%)
Mutual labels:  react-router
laravel-react-boilerplate
Laravel React Boilerplate with Ant Design, Route-Level Code Splitting, Redux, Sanctum Auth
Stars: ✭ 49 (+188.24%)
Mutual labels:  react-router
react-express-mongodb
基于react全家桶+antd design+webpack2+node+express+mongodb开发的前后台博客系统
Stars: ✭ 26 (+52.94%)
Mutual labels:  react-router
react-ssr-starter
🔥 ⚛️ A React boilerplate for a universal web app with a highly scalable, offline-first foundation and our focus on performance and best practices.
Stars: ✭ 40 (+135.29%)
Mutual labels:  react-router

React Router Reanimated

Easily bring animations and gesture-enabled navigation to your React Native app built with React Router.

react-router-reanimated.mp4

Usage

This library is built on top of react-native-screens. When you're done setting it up in your app (if you're not using it already), replace the Switch you're using from react-router-native with the AnimatedSwitch provided by this library, and you're all set!

- import { NativeRouter, Route, Switch } from 'react-router-native';
+ import { NativeRouter, Route } from 'react-router-native';
+ import { AnimatedSwitch } from 'react-router-reanimated';

export default function App() {
  return (
    <NativeRouter>
-      <Switch>
+      <AnimatedSwitch>
        <Route exact path="/">{/* ... */}</Route>
        <Route exact path="/another-path">{/* ... */}</Route>
+      </AnimatedSwitch>
-      </Switch>
    </NativeRouter>
  )
}

Limitations

This library is incompatible with react-router at version 6 or higher, since from that version accessing the router's history is not possible anymore, and behind the curtains this library is using it to stack screens one on top of the other.

Motivation

Building apps on top of React Router on the web and React Router Native on mobile has proved to be very efficient from a product perspective in my experience. The ecosystem around React Router Native has never matured though, and so building basic features like Tab/Stack navigations or supporting gesture-based navigation is way more complex that with alternative solutions, like React Navigation. I'm publishing this library in the hope of easing the development of mobile apps on top of React Router Native.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].