Example of React Native Navigation with re-frame/re-natal
Clojure JavaScript Objective-C Python Java
Latest commit 181b3dc Dec 22, 2016 @vikeri committed on GitHub Added deprecation notice
Permalink
Failed to load latest commit information.
android
doc
env
images
ios
src
test/navigator_cljs
.buckconfig
.flowconfig
.gitignore
.hgignore
.re-natal
.watchmanconfig
CHANGELOG.md
LICENSE
README.md
figwheel-bridge.js
package.json
project.clj

README.md

MIGHT SOON BE DEPRECATED

It seems that there is a more complete navigation solution coming to React Native from official sources. This still works for smaller projects but if you are starting something bigger I'd wait. https://github.com/exponent/ex-navigation#an-important-note-about-the-future

re-navigate

Example of React Native Navigation with re-frame/re-natal

This example uses React Native's new Navigation component NavigationExperimental which has a more FRP-like setup (like redux) and thus it works ridiculously well with re-frame.

Example code

It is based on the scaffold from re-natal, almost everything is found in navigator-cljs.ios.core

Run

Requirements:

  • node & npm
  • leiningen brew install leiningen
  • re-natal & react-native-cli npm install -g re-natal react-native-cli

cd into the directory.

npm install && lein prod-build && react-native run-ios

Todo

  • Get Tabs to work

Notes

  • React (15.3.1)
  • React Native (0.36.0)

In the future this might become a library if it would be useful to reuse things like the navigation handlers and the db schema.

It has been tested on both Android and iOS.

Contributors

Viktor Eriksson (vikeri)

Anthony Mittaz (sync)

Sam Liu (wind13)