How to use the react-native-router-flux.Actions.create function in react-native-router-flux

To help you get started, we’ve selected a few react-native-router-flux examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github surmon-china / surmon.me.native / src.starter-kit.bak / navigation / index.js View on Github external
import { Actions, Scene, ActionConst } from 'react-native-router-flux';

// Consts and Libs
import { AppConfig } from '@constants/';

// Components
import Drawer from '@containers/ui/DrawerContainer';

// Scenes
import AppLaunch from '@containers/Launch/LaunchContainer';
import Placeholder from '@components/general/Placeholder';
import AuthScenes from './auth';
import TabsScenes from './tabs';

/* Routes ==================================================================== */
export default Actions.create(
  
    

    {/* Auth */}
    {AuthScenes}

    {/* Main App */}
    
      {/* Drawer Side Menu */}
      
        {/* Tabbar */}
github aksonov / react-native-router-flux / examples / redux / src / app.js View on Github external
import React from 'react';
import { createStore, applyMiddleware, combineReducers } from 'redux';
import { Provider, connect } from 'react-redux';
import { Scene, Actions, Router } from 'react-native-router-flux';
import { reduxifyNavigator, createReactNavigationReduxMiddleware, createNavigationReducer } from 'react-navigation-redux-helpers';

import Home from './home';
import Page from './page';
import reducer from './a-reducer';

const AppNavigator = Actions.create(
  
    
    
  ,
);

// default nav reducer
const initialState = AppNavigator.router.getStateForAction(AppNavigator.router.getActionForPathAndParams('home'));
const navReducer = (state = initialState, action) => {
  const nextState = AppNavigator.router.getStateForAction(action, state);
  // Simply return the original `state` if `nextState` is null or undefined.
  return nextState || state;
};

const appReducer = combineReducers({
  nav: navReducer,
github N3TC4T / Nearby-Live / src / navigation / index.js View on Github external
{/* Auth */}
        {AuthScenes}

        {/* Main App */}
        
            {/* Tabbar */}
            {TabsScenes}

            {/* Sub-Scenes */}
            {SubScenes}
        

    
);

export default Actions.create(route());
github asmalik107 / AwesimSteps / src / routes / scenes.js View on Github external
backgroundColor: Colors.tabbar,
        borderTopColor: '#e5e5e5',
        height: 60,
        shadowColor: "#000000",
        shadowOpacity: 0.8,
        shadowRadius: 2,
        shadowOffset: {
            height: 1,
            width: 0
        },
        elevation: 5
    }
});


const scenes = Actions.create(
github justindannguyen / carsharing-react-native-redux-app / src / routes / scenes.js View on Github external
* Copyright (c) 2017-present, Justin Nguyen.
 * All rights reserved.
 * 
 * @author tuan3.nguyen@gmail.com
 * 
 * @flow
 * @format
 */
"use strict"

import React from "react"
import { Actions, Scene } from "react-native-router-flux"
import HomeContainer from "./Home/containers/HomeContainer"
import AppHeader from "../global/Template/containers/AppHeaderContainer"

export const scenes = Actions.create(
  
    
  
)
github iZaL / insta-snap / src / scenes.js View on Github external
import Login from './modules/Auth/Login';
import Register from './containers/Auth/Register';
import User from './containers/User/User';
import UserFavorites from './containers/User/UserFavorites';
import Media from './containers/Media/Media';
import Medias from './containers/Media/Medias';
import MediaComments from './containers/Media/MediaComments';
import MediaFavorites from './containers/Media/MediaFavorites';
import MediaCapture from './containers/Media/MediaCapture';
import UserMedias from './containers/User/UserMedias';
import Followers from './containers/User/Followers';
import Followings from './containers/User/Followings';
import Settings from './modules/Settings/Settings';
import LoginDialog from './components/LoginDialog';

export const scenes = Actions.create(
github guangqiang-liu / OneM / src / containers / App.js View on Github external
const reducerCreate = params => {
  const defaultReducer = new Reducer(params)
  return (state, action) => {
    action.type !== type.REACT_NATIVE_ROUTER_FLUX_SET_PARAMS ? dispatch(state)(action) : null
    return defaultReducer(state, action)
  }
}

const getSceneStyle = () => ({
  backgroundColor: "white",
  shadowOpacity: 1,
  shadowRadius: 3,
})

const scenes = Actions.create(
  
    
      

        
          

          

           state.picture.picList,
            Action.dispatch('picture')
          )(PicDetail)}/>
github ihor / ReactNativeDeepLinkingExample / app / router.js View on Github external
import React from 'react';
import { Scene, Actions } from 'react-native-router-flux';
import crossroads from 'crossroads';

import LinkedRouter from './components/LinkedRouter';
import HomeScreen from './components/HomeScreen';
import GreetingScreen from './components/GreetingScreen';

const scenes = Actions.create(
    
        
        
    
);

crossroads.addRoute('greetings/{name}', name => Actions.greeting({ name }));

export default ;
github redbaron76 / MeteorNative / RNApp / app / config / scenes.js View on Github external
import React from 'react';
import { Actions, Scene } from 'react-native-router-flux';
import * as Card from '../containers';

const scenes = Actions.create(
    
        
        
        
        
        
        
    
);

export default scenes;
github kkav004 / react-native-redux-real-world / src / core / routes / app.js View on Github external
import React from 'react';
import Welcome from './../../components/Welcome';
import { Actions, Scene } from 'react-native-router-flux';

const routes = Actions.create(
  
    
  
);

export default routes;