lanceharper / rebolt-navigation

a fast and declarative router for rebolt

Home Page:https://reroute.callstack.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReRoute Native

CircleCI

a fast, declarative navigation for react native

We're looking forward to seeing your feedback or questions on Discord

Discord

Getting started

ReRoute Native website

Installation

Open a Terminal in your project's folder and run,

yarn add reroute-native

After installation, you will need to add this library to your bsconfig.json dependencies

"bs-dependencies": [
  "reason-react",
  "reroute-native"
],

In addition you will need to install a few peer dependencies:

yarn add bs-react-native react-native-gesture-handler

As per this issue, you might need to add the following to your bsconfig.json:


"package-specs": {
  "module": "commonjs",
  "in-source": true
}

This generates output alongside source files. (documentation)

Usage

View the docs

Examples

Developing

# Starts Metro (React Native Packager)
npm run start-example

# Runs the app on iOS/Android
npm run run-ios

# Watches for source build changes
npm start

License

MIT (c) 2018 Callstack

About

a fast and declarative router for rebolt

https://reroute.callstack.com/

License:MIT License


Languages

Language:OCaml 73.4%Language:JavaScript 13.8%Language:C++ 5.2%Language:Objective-C 4.1%Language:Java 1.7%Language:Python 1.4%Language:CSS 0.3%