From 8afa2753060ea0bd84009e01f5b01076e1f5970c Mon Sep 17 00:00:00 2001 From: Overtorment Date: Sat, 24 Mar 2018 21:24:20 +0000 Subject: [PATCH] refactoring --- App.js | 19 +---- SecondaryBottomTabs.js | 137 ----------------------------------- class/app-storage.js | 3 +- class/constants.js | 2 +- class/index.js | 12 +-- class/legacy-wallet.js | 14 ++-- class/segwit-bech-wallet.js | 4 +- class/segwit-p2sh-wallet.js | 8 +- package.json | 4 +- screen/selftest.js | 19 ++++- screen/send/details.js | 12 +-- screen/send/scanQrAddress.js | 8 +- screen/settings.js | 8 ++ 13 files changed, 63 insertions(+), 187 deletions(-) delete mode 100644 SecondaryBottomTabs.js diff --git a/App.js b/App.js index 9397478f..035bb58e 100644 --- a/App.js +++ b/App.js @@ -4,6 +4,7 @@ import PropTypes from 'prop-types'; import { Text, ScrollView, StyleSheet } from 'react-native'; import { DrawerNavigator, SafeAreaView } from 'react-navigation'; import MainBottomTabs from './MainBottomTabs'; +import Selftest from './screen/selftest'; require('./BlueApp'); @@ -66,22 +67,10 @@ const TabsInDrawer = DrawerNavigator( }, }, - /* SecondaryBottomTabs: { - screen: SecondaryBottomTabs, - path: 'chat/aaa', - navigationOptions: { - drawer: () => ({ - label: 'SecondaryBottomTabs', - icon: ({ tintColor }) => ( - - ), - }), + Selftest: { + screen: Selftest, + navigationOptions: {}, }, - }, */ }, { contentComponent: CustomDrawerContentComponent, diff --git a/SecondaryBottomTabs.js b/SecondaryBottomTabs.js deleted file mode 100644 index b21a0de4..00000000 --- a/SecondaryBottomTabs.js +++ /dev/null @@ -1,137 +0,0 @@ -/** - * @flow - */ - -import React from 'react'; -import { Button, ScrollView } from 'react-native'; -import { SafeAreaView, StackNavigator, TabNavigator } from 'react-navigation'; -import PropTypes from 'prop-types'; - -import Ionicons from 'react-native-vector-icons/Ionicons'; - -const MyNavScreen = ({ navigation, banner }) => ( - - -