Commit c4f25836 authored by Thibaut Sardan's avatar Thibaut Sardan
Browse files

Merge branch 'master' of github.com:paritytech/parity-signer into tbaut-fix-autofocus

parents efd60589 f641e03f
......@@ -20,7 +20,7 @@ if [ -x "$MAKER" ]; then
echo 'Creating standalone NDK...'
else
printf '\e[91;1mPlease install `android-ndk`!\e[0m\n\n'
printf '$ brew install android-ndk\n'
printf '$ brew cask install android-ndk\n'
exit 1
fi
......
......@@ -5,9 +5,9 @@
"license": "GPL-3.0",
"scripts": {
"build-rust-ios": "cd rust/signer && make ios",
"ios": "yarn run build-rust-ios && yarn run cli run-ios",
"build-rust-android": "cd rust/signer && make android",
"android": "yarn run build-rust-android && yarn run cli run-android",
"ios": "npm run build-rust-ios && react-native run-ios",
"android": "npm run build-rust-android && react-native run-android",
"start": "yarn run ios",
"test": "jest",
"lint": "",
......
......@@ -17,7 +17,6 @@
'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Animated, Text, View, StyleSheet } from 'react-native';
import TouchableItem from './TouchableItem';
import TextInput from './TextInput';
......@@ -188,6 +187,7 @@ export default class AccountSeed extends Component {
<TextInput
style={[styles.input, invalidStyles]}
multiline
autoCapitalize="none"
onBlur={this.keyboardDidHide}
onSelectionChange={this.handleCursorPosition}
{...this.props}
......
......@@ -43,6 +43,7 @@ import {
DEFAULT_NETWORK_COLOR
} from '../constants';
import colors from '../colors';
import { validateSeed } from '../util/account';
export default class AccountNew extends React.Component {
static navigationOptions = {
......@@ -126,9 +127,9 @@ class AccountNewView extends React.Component {
<Button
buttonStyles={styles.nextStep}
title="Next Step"
disabled={ !validateSeed(selected.seed).valid }
onPress={() => {
selected.address &&
selected.address.length &&
validateSeed(selected.seed).valid &&
this.props.navigation.navigate('AccountBackup', {
isNew: true,
isWelcome: this.props.navigation.getParam('isWelcome')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment