TST: fixed selftest

This commit is contained in:
Overtorment 2018-10-31 12:53:18 +00:00
parent 01ad4a8d01
commit eaa81bfd23
3 changed files with 11 additions and 16 deletions

2
.gitignore vendored
View file

@ -15,3 +15,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
class/constants.js

View file

@ -2,6 +2,7 @@ import { createStackNavigator } from 'react-navigation';
import Settings from './screen/settings/settings';
import About from './screen/settings/about';
import Selftest from './screen/selftest';
import Language from './screen/settings/language';
import EncryptStorage from './screen/settings/encryptStorage';
import WalletsList from './screen/wallets/list';
@ -63,6 +64,9 @@ const WalletsStackNavigator = createStackNavigator({
screen: About,
path: 'About',
},
Selftest: {
screen: Selftest,
},
Language: {
screen: Language,
path: 'Language',

View file

@ -1,20 +1,16 @@
import React, { Component } from 'react';
import { ScrollView, View } from 'react-native';
import Ionicons from 'react-native-vector-icons/Ionicons';
import { BlueLoading, BlueSpacing20, SafeBlueArea, BlueCard, BlueText, BlueButton, BlueHeader } from '../BlueComponents';
import { BlueLoading, BlueSpacing20, SafeBlueArea, BlueCard, BlueText, BlueButton, BlueNavigationStyle } from '../BlueComponents';
import PropTypes from 'prop-types';
import { SegwitP2SHWallet, LegacyWallet, HDSegwitP2SHWallet } from '../class';
let BlueApp = require('../BlueApp');
let BigNumber = require('bignumber.js');
let encryption = require('../encryption');
export default class Selftest extends Component {
static navigationOptions = {
tabBarLabel: 'Self test',
tabBarIcon: ({ tintColor, focused }) => (
<Ionicons name={focused ? 'ios-settings' : 'ios-settings-outline'} size={26} style={{ color: tintColor }} />
),
};
static navigationOptions = () => ({
...BlueNavigationStyle(),
title: 'Self test',
});
constructor(props) {
super(props);
@ -258,13 +254,6 @@ export default class Selftest extends Component {
return (
<SafeBlueArea forceInset={{ horizontal: 'always' }} style={{ flex: 1 }}>
<BlueHeader
backgroundColor={BlueApp.settings.brandingColor}
centerComponent={{
text: 'Self test',
style: { color: BlueApp.settings.foregroundColor, fontSize: 23 },
}}
/>
<BlueCard>
<ScrollView maxHeight={450}>
<BlueSpacing20 />