forked from sigillabs/mobidex
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc857b6
commit 63076c2
Showing
26 changed files
with
79 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,11 @@ | ||
import React, { Component } from "react"; | ||
import { addNavigationHelpers } from "react-navigation"; | ||
import { createReduxBoundAddListener } from "react-navigation-redux-helpers"; | ||
import { connect } from "react-redux"; | ||
import Navigator from "../navigation"; | ||
|
||
const addListener = createReduxBoundAddListener("root"); | ||
|
||
class Main extends Component { | ||
export default class Main extends Component { | ||
render() { | ||
return ( | ||
<Navigator navigation={addNavigationHelpers({ | ||
dispatch: this.props.dispatch, | ||
state: this.props.navigation, | ||
addListener | ||
})} /> | ||
<Navigator /> | ||
); | ||
} | ||
} | ||
|
||
export default connect((state) => ({ ...state.device.layout, navigation: state.navigation }), dispatch => ({ dispatch }))(Main); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,16 @@ | ||
import { combineReducers } from "redux"; | ||
import assets from "./assets"; | ||
import device from "./device"; | ||
import errors from "./errors"; | ||
import navigation from "./navigation"; | ||
import settings from "./settings"; | ||
import orders from "./orders"; | ||
import relayer from "./relayer"; | ||
import startup from "./startup"; | ||
import tokens from "./tokens"; | ||
import transactions from "./transactions"; | ||
import wallet from "./wallet"; | ||
|
||
export default combineReducers({ | ||
assets, | ||
device, | ||
errors, | ||
navigation, | ||
orders, | ||
relayer, | ||
settings, | ||
startup, | ||
tokens, | ||
transactions, | ||
wallet | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { createStore, applyMiddleware, Store } from "redux"; | ||
import thunk from "redux-thunk"; | ||
import logger from "redux-logger"; | ||
import { createReactNavigationReduxMiddleware } from "react-navigation-redux-helpers"; | ||
import rootReducer from "./reducers"; | ||
|
||
const navigationMiddleware = createReactNavigationReduxMiddleware("root", state => state.navigation); | ||
export default function configureStore(initialState) { | ||
return createStore(rootReducer, initialState, applyMiddleware(thunk, logger, navigationMiddleware)); | ||
return createStore(rootReducer, initialState, applyMiddleware(thunk, logger)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export * from "./trade"; | ||
export * from "./transactions"; | ||
export * from "./tokens"; | ||
export * from "./relayer"; | ||
export * from "./settings"; | ||
export * from "./wallet"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters