diff --git a/app/components/App/index.js b/app/components/App/index.js index 411cdec1959..ccc892860de 100644 --- a/app/components/App/index.js +++ b/app/components/App/index.js @@ -1,15 +1,20 @@ import React from 'react'; import { StyleSheet } from 'react-native'; import { createBottomTabNavigator } from 'react-navigation'; +import { createIconSetFromFontello } from 'react-native-vector-icons'; import BrowserScreen from '../BrowserScreen'; +import Engine from '../../core/Engine'; import WalletScreen from '../WalletScreen'; -import { createIconSetFromFontello } from 'react-native-vector-icons'; import fontelloConfig from '../../fonts/config.json'; +import { colors } from '../../styles/common'; + const Icon = createIconSetFromFontello(fontelloConfig); -import { colors } from '../../styles/common'; +const engine = new Engine(); + /** - * Root application component responsible for configuring the tab navigator + * Root application component responsible for configuring app navigation + * and instantiating the core Engine module */ export default createBottomTabNavigator( { @@ -21,7 +26,9 @@ export default createBottomTabNavigator( }) }, Wallet: { - screen: WalletScreen, + screen: function Home() { + return ; + }, navigationOptions: () => ({ title: 'Wallet', tabBarIcon: ico => // eslint-disable-line react/display-name diff --git a/app/components/Screen/__snapshots__/index.test.js.snap b/app/components/Screen/__snapshots__/index.test.js.snap index 07e9191c235..113e7a114b2 100644 --- a/app/components/Screen/__snapshots__/index.test.js.snap +++ b/app/components/Screen/__snapshots__/index.test.js.snap @@ -11,7 +11,7 @@ exports[`Screen should render correctly 1`] = ` diff --git a/app/components/Wallet/__snapshots__/index.test.js.snap b/app/components/Wallet/__snapshots__/index.test.js.snap index 476cdd1325c..5bf54e2e8d7 100644 --- a/app/components/Wallet/__snapshots__/index.test.js.snap +++ b/app/components/Wallet/__snapshots__/index.test.js.snap @@ -14,5 +14,40 @@ exports[`Wallet should render correctly 1`] = ` Wallet + + ETH: $ + 0 + + + NETWORK CODE: + + + NETWORK NAME: + foo + + + STATUS: + ok + + + BLOCK: + 1 + + + GAS PRICE: + 1000000000 + +