diff --git a/.flowconfig b/.flowconfig index f3eb74de6..9bded78be 100644 --- a/.flowconfig +++ b/.flowconfig @@ -67,4 +67,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError [version] -^0.85.0 +^0.86.0 diff --git a/.gitignore b/.gitignore index 5d647565f..04555cfac 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,7 @@ buck-out/ # Bundle artifact *.jsbundle + +#BlueWallet +release-notes.json +release-notes.txt \ No newline at end of file diff --git a/BlueApp.js b/BlueApp.js index 2a1b249ce..3166d9199 100644 --- a/BlueApp.js +++ b/BlueApp.js @@ -7,6 +7,7 @@ let EV = require('./events'); let currency = require('./currency'); let loc = require('./loc'); let A = require('./analytics'); +let BlueElectrum = require('./BlueElectrum'); // eslint-disable-line /** @type {AppStorage} */ let BlueApp = new AppStorage(); @@ -31,7 +32,7 @@ async function startAndDecrypt(retry) { let securityAlert = require('./security-alert'); await securityAlert.start(); // now, lets try to fetch balance and txs for first wallet if it is time for it - let hadToRefresh = false; + /* let hadToRefresh = false; let noErr = true; try { let wallets = BlueApp.getWallets(); @@ -57,7 +58,7 @@ async function startAndDecrypt(retry) { if (hadToRefresh && noErr) { await BlueApp.saveToDisk(); // caching - } + } */ } if (!success && password) { diff --git a/BlueComponents.js b/BlueComponents.js index ea2140a4f..ca442b368 100644 --- a/BlueComponents.js +++ b/BlueComponents.js @@ -4,7 +4,7 @@ import React, { Component } from 'react'; import Ionicons from 'react-native-vector-icons/Ionicons'; import PropTypes from 'prop-types'; -import { Icon, Button, FormLabel, FormInput, Text, Header, List, ListItem } from 'react-native-elements'; +import { Icon, FormLabel, FormInput, Text, Header, List, ListItem } from 'react-native-elements'; import { TouchableOpacity, TouchableWithoutFeedback, @@ -15,10 +15,11 @@ import { StyleSheet, Dimensions, Image, + Keyboard, SafeAreaView, + InputAccessoryView, Clipboard, Platform, - LayoutAnimation, TextInput, } from 'react-native'; import LinearGradient from 'react-native-linear-gradient'; @@ -44,14 +45,19 @@ if (aspectRatio > 1.6) { export class BlueButton extends Component { render() { - const backgroundColor = this.props.disabled ? '#99a0ab' : '#ccddf9'; + let backgroundColor = '#ccddf9'; + let fontColor = '#0c2550'; + if (this.props.hasOwnProperty('disabled') && this.props.disabled === true) { + backgroundColor = '#eef0f4'; + fontColor = '#9aa0aa'; + } return ( {this.props.icon && } - {this.props.title && {this.props.title}} + {this.props.title && {this.props.title}} ); @@ -141,26 +147,18 @@ export class LightningButton extends Component { export class BlueButtonLink extends Component { render() { - // eslint-disable-next-line - this.props.buttonStyle = this.props.buttonStyle || {}; - return ( -