mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 20:01:56 +03:00
added keyboard avoiding view
This commit is contained in:
parent
000a0af461
commit
af15c488cc
@ -1,6 +1,6 @@
|
|||||||
/* eslint-disable react/no-unused-state */
|
/* eslint-disable react/no-unused-state */
|
||||||
import React, { Fragment, Component } from 'react';
|
import React, { Fragment, Component } from 'react';
|
||||||
import { Text, View, ScrollView, Alert } from 'react-native';
|
import { Text, View, ScrollView, Alert, KeyboardAvoidingView, Platform } from 'react-native';
|
||||||
import { injectIntl } from 'react-intl';
|
import { injectIntl } from 'react-intl';
|
||||||
import Slider from '@esteemapp/react-native-slider';
|
import Slider from '@esteemapp/react-native-slider';
|
||||||
import get from 'lodash/get';
|
import get from 'lodash/get';
|
||||||
@ -390,7 +390,11 @@ class PowerDownView extends Component {
|
|||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<BasicHeader title={intl.formatMessage({ id: `transfer.${transferType}` })} />
|
<BasicHeader title={intl.formatMessage({ id: `transfer.${transferType}` })} />
|
||||||
<View style={styles.container}>
|
<KeyboardAvoidingView
|
||||||
|
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
|
||||||
|
style={styles.powerDownKeyboadrAvoidingContainer}
|
||||||
|
keyboardShouldPersistTaps
|
||||||
|
>
|
||||||
<ScrollView style={styles.scroll} contentContainerStyle={styles.scrollContentContainer}>
|
<ScrollView style={styles.scroll} contentContainerStyle={styles.scrollContentContainer}>
|
||||||
{this._renderBeneficiarySelectionContent()}
|
{this._renderBeneficiarySelectionContent()}
|
||||||
{_renderMiddleContent()}
|
{_renderMiddleContent()}
|
||||||
@ -496,7 +500,7 @@ class PowerDownView extends Component {
|
|||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
</View>
|
</KeyboardAvoidingView>
|
||||||
<OptionsModal
|
<OptionsModal
|
||||||
ref={this.startActionSheet}
|
ref={this.startActionSheet}
|
||||||
options={[
|
options={[
|
||||||
|
@ -347,4 +347,8 @@ export default EStyleSheet.create({
|
|||||||
textAlign: 'left',
|
textAlign: 'left',
|
||||||
paddingLeft: 12,
|
paddingLeft: 12,
|
||||||
},
|
},
|
||||||
|
powerDownKeyboadrAvoidingContainer: {
|
||||||
|
flex: 1,
|
||||||
|
backgroundColor: '$primaryBackgroundColor',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user