Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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 */}
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,
{/* Auth */}
{AuthScenes}
{/* Main App */}
{/* Tabbar */}
{TabsScenes}
{/* Sub-Scenes */}
{SubScenes}
);
export default Actions.create(route());
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(
* 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(
)
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(
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)}/>
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 ;
import React from 'react';
import { Actions, Scene } from 'react-native-router-flux';
import * as Card from '../containers';
const scenes = Actions.create(
);
export default scenes;
import React from 'react';
import Welcome from './../../components/Welcome';
import { Actions, Scene } from 'react-native-router-flux';
const routes = Actions.create(
);
export default routes;