FIX: Autocorrect when importing wallet #164

This commit is contained in:
Marcos Rodriguez Vélez 2018-12-22 23:13:58 -05:00
parent 29b83ba6e5
commit bc1fa41269
2 changed files with 11 additions and 11 deletions

View file

@ -14,6 +14,7 @@ import {
SafeAreaView,
Clipboard,
Platform,
TextInput,
} from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
import { WatchOnlyWallet, LegacyWallet } from './class';
@ -282,24 +283,24 @@ export class BlueFormInput extends Component {
export class BlueFormMultiInput extends Component {
render() {
return (
<FormInput
<TextInput
multiline
underlineColorAndroid="transparent"
numberOfLines={4}
inputStyle={{
width: width - 40,
color: BlueApp.settings.foregroundColor,
height: 120,
// fontSize: (isIpad && 10) || ((is.iphone8() && 12) || 14),
}}
containerStyle={{
style={{
marginTop: 5,
marginHorizontal: 20,
borderColor: '#d2d2d2',
borderBottomColor: '#d2d2d2',
borderWidth: 0.5,
borderBottomWidth: 0.5,
backgroundColor: '#f5f5f5',
height: 200,
color: BlueApp.settings.foregroundColor,
}}
autoCorrect={false}
autoCapitalize="none"
spellCheck={false}
{...this.props}
/>
);

View file

@ -60,7 +60,7 @@ export default class WalletsImport extends Component {
A(A.ENUM.CREATED_WALLET);
setTimeout(() => {
this.props.navigation.popToTop();
}, 500);
});
}
async importMnemonic(text) {
@ -217,11 +217,10 @@ export default class WalletsImport extends Component {
<BlueSpacing20 />
<BlueFormMultiInput
value={this.state.label}
placeholder={''}
placeholder=""
onChangeText={text => {
this.setLabel(text);
}}
autoCorrect={false}
/>
<BlueSpacing20 />
<View