react-native-meteor-router-flux
Plugin for react-native-meteor.
Custom scene renderer which allows to select tab scene to show depending from app state. It could be useful for authentication, restricted scenes, etc.
Install
npm i --save react-native-meteor-router-flux@latest
Example usage
'use strict'; ;;;; { const getMeteorData = { return connected: Meteorstatusconnected user: Meteor loggingIn: Meteor }; const selector = { if!dataconnected || dataloggingIn return "loading"; else if !datauser return "login"; else return "loggedIn"; }; const scenes = Actions; return <Router scenes=scenes /> ; }
Pull Requests are welcome ! :)