All Projects → ythecombinator → react-native-web-monorepo-navigation

ythecombinator / react-native-web-monorepo-navigation

Licence: other
⚛️ An opinionated universal navigation strategy for codebases containing both React & React Native

Programming Languages

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

Projects that are alternatives of or similar to react-native-web-monorepo-navigation

React Native Popover View
A well-tested, adaptable, lightweight <Popover> component for react-native
Stars: ✭ 191 (+695.83%)
Mutual labels:  react-navigation
Fluidtransitions
Fluid Transitions for React Navigation
Stars: ✭ 2,814 (+11625%)
Mutual labels:  react-navigation
reactXstarter
React + Redux + React Native Starter Kit with reusable business logic. Sample TODO app built in.
Stars: ✭ 42 (+75%)
Mutual labels:  monorepo
Comicbook
React-Native跨平台漫画App免费视频:http://www.kongyixueyuan.com/course/3528
Stars: ✭ 199 (+729.17%)
Mutual labels:  react-navigation
React Native Ofo
React Native 仿 ofo 共享单车 App
Stars: ✭ 239 (+895.83%)
Mutual labels:  react-navigation
introduction-nodejs
Introduction to NodeJS
Stars: ✭ 13 (-45.83%)
Mutual labels:  monorepo
React Navigation Backhandler
Easily handle Android back button behavior with React-Navigation.
Stars: ✭ 177 (+637.5%)
Mutual labels:  react-navigation
react-native-boilerplate
A collection of curated and well maintained React Native boilerplates with various possibilities and combinations.
Stars: ✭ 24 (+0%)
Mutual labels:  react-navigation
Pillar Valley
👾A cross-platform video game built with Expo, three.js, and Firebase! 🎮🕹
Stars: ✭ 242 (+908.33%)
Mutual labels:  react-navigation
moon-design
Moon Design System for React
Stars: ✭ 209 (+770.83%)
Mutual labels:  monorepo
Expo Firebase Starter
🔥⚛️📱 Expo + Firebase Starter Kit
Stars: ✭ 199 (+729.17%)
Mutual labels:  react-navigation
React Native Examples
A repo that contain React Native examples most related to tutorials I publish
Stars: ✭ 222 (+825%)
Mutual labels:  react-navigation
react-native-template
An opinionated template to bootstrap your next React Native app with all the time-wasting packages you need to have.
Stars: ✭ 132 (+450%)
Mutual labels:  react-navigation
Expo Native Firebase
🔥 Native Firebase Expo App (iOS, Android) Demo for Firestore, Notifications, Analytics, Storage, Messaging, Database 🚨
Stars: ✭ 197 (+720.83%)
Mutual labels:  react-navigation
monorepo-utils
A collection of utilities for monorepo/lerna. Tools for TypeScript project references etc..
Stars: ✭ 143 (+495.83%)
Mutual labels:  monorepo
Expo Uber
Uber UI Clone with React Native & Expo
Stars: ✭ 186 (+675%)
Mutual labels:  react-navigation
Website
Bookshlf Website Frontend. This is the Developer Version of Bookshlf. To See Original Stable Version Go to https://bookshlf.in
Stars: ✭ 25 (+4.17%)
Mutual labels:  react-router-dom
react-native-instagram-clone
Instagram Clone (light version) — Graphql + React (ios, android, web)
Stars: ✭ 29 (+20.83%)
Mutual labels:  react-router-dom
flex-plugin-builder
Packages related to building a Twilio Flex Plugin
Stars: ✭ 69 (+187.5%)
Mutual labels:  monorepo
hasura-node-monolith-example
Example of a monolithic web application using Hasura GraphQL Engine + Node.js + Next.js
Stars: ✭ 25 (+4.17%)
Mutual labels:  monorepo

Navigation on React Native [Web]

This is the source code from this blog post.

cover

Table of Contents

How to run

Requirements: React Native (last tested on [email protected])

  • $ git clone [email protected]:ythecombinator/react-native-web-monorepo-navigation.git
  • $ cd react-native-web-monorepo-navigation
  • $ yarn
  • $ cd packages/mobile/ios
  • $ pod install
  • $ cd -
  • $ yarn workspace web start
  • $ yarn workspace mobile start
  • Run the project
    • [iOS] Via Xcode
      • yarn xcode (open the project on Xcode)
      • Press the Run button
    • [Android] Via Android Studio
      • yarn studio (open the project on Android Studio)
      • Press the Run button
    • Via CLI
      • You may need to launch your device emulator before the next command
      • $ yarn android or $ yarn ios

API

useNavigation()

useNavigation is a hook which gives access to the navigation object. It includes:

  • navigate: Go to another route
  • replace: Replace the current route with a new one
  • goBack: Close active route and move back in the stack

useRoute()

useRoute is a hook which gives access to the route object. It includes:

  • name: Name of the route. Defined in navigator component hierarchy
  • params: Set of params which is defined while navigating – e.g. navigate('Twitter', { user: 'Dan Abramov' })

<Link />

Provides declarative, accessible navigation around your application. It has the following props:

  • path: A string representing the path to link to
  • params: An object of key/value pairs of route parameters

Roadmap

API

  • useRoute hook
  • useNavigation hook
  • Link componentt
  • Redirect component

Miscellaneous

  • Move API to a library that can be installed as an npm package
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].