Posts

Showing posts with the label react-native-router-flux

Using react-native-tab-view with react-native-router-flux

I'm using react-native-tab-view as my main app container in which I have different components and nested tabs as well. However I wanted to use react-native-router-flux for navigation. I currently have the setup like so: <Router> <Scene key='root'> <Scene hideNavBar key='home' component={ReactNativeTabViewContainer} tabs ={true} initial={true} /> </Scene> </Router> But Right now the react-native-router-flux only sees a single route. How can I track the nav changes inside the React-native-tab-view and add those nav state to the main route state stored in redux.

React Native: react-native-router-flux type Property issue

I am using react-native-router-flux react native library for navigation but type Property not working <Route name="error" component={Error} title="Error" type="reset"/> it give error like _this2[type] is not a function. react-native-router-flux version 4.0.0-beta.28 The thing is type should use in <Scene> not in <Route> here the working example import { Router, Scene, Actions } from 'react-native-router-flux'; <Router> <Scene key="root"> <Scene key="login" component={LoginForm} hideNavBar={'true'} initial={true} /> <Scene key="signin" component={SigninForm} /> <Scene type="reset" key="dashboard" component={NavigationView} initial={props.isLogin} hideNavBar={'true'} /> </Scene> </Router> well there is...