Browse Source

FIX: Keyboard input accessory view visibility on Android

androidkb
Marcos Rodriguez 5 years ago
parent
commit
d1aa556f0a
  1. 8
      BlueComponents.js
  2. 2
      screen/send/details.js
  3. 48
      screen/wallets/import.js

8
BlueComponents.js

@ -594,12 +594,6 @@ export class BlueFormInput extends Component {
}
export class BlueFormMultiInput extends Component {
constructor(props) {
super(props);
this.state = {
selection: { start: 0, end: 0 },
};
}
render() {
return (
@ -615,7 +609,7 @@ export class BlueFormMultiInput extends Component {
borderWidth: 0.5,
borderBottomWidth: 0.5,
backgroundColor: BlueApp.settings.inputBackgroundColor,
height: 200,
height: 185,
color: BlueApp.settings.foregroundColor,
}}
autoCorrect={false}

2
screen/send/details.js

@ -765,7 +765,7 @@ export default class SendDetails extends Component {
};
renderCreateButton = () => {
return (
return this.state.isAmountToolbarVisibleForAndroid ? null : (
<View style={{ marginHorizontal: 56, marginVertical: 16, alignContent: 'center', backgroundColor: '#FFFFFF', minHeight: 44 }}>
{this.state.isLoading ? <ActivityIndicator /> : <BlueButton onPress={() => this.createTransaction()} title={'Next'} />}
</View>

48
screen/wallets/import.js

@ -288,28 +288,32 @@ export default class WalletsImport extends Component {
alignItems: 'center',
}}
>
<BlueButton
disabled={!this.state.label}
title={loc.wallets.import.do_import}
buttonStyle={{
width: width / 1.5,
}}
onPress={async () => {
if (!this.state.label) {
return;
}
this.setState({ isLoading: true }, async () => {
await this.importMnemonic(this.state.label.trim());
this.setState({ isLoading: false });
});
}}
/>
<BlueButtonLink
title={loc.wallets.import.scan_qr}
onPress={() => {
this.props.navigation.navigate('ScanQrWif');
}}
/>
{this.state.isToolbarVisibleForAndroid ? null : (
<>
<BlueButton
disabled={!this.state.label}
title={loc.wallets.import.do_import}
buttonStyle={{
width: width / 1.5,
}}
onPress={async () => {
if (!this.state.label) {
return;
}
this.setState({ isLoading: true }, async () => {
await this.importMnemonic(this.state.label.trim());
this.setState({ isLoading: false });
});
}}
/>
<BlueButtonLink
title={loc.wallets.import.scan_qr}
onPress={() => {
this.props.navigation.navigate('ScanQrWif');
}}
/>
</>
)}
</View>
</SafeBlueArea>
);

Loading…
Cancel
Save