Skip to content
Snippets Groups Projects
Commit c00e3f2b authored by mashazyu's avatar mashazyu Committed by emelko
Browse files

Adds padding between keyboard and text input

parent ead6db12
No related branches found
No related tags found
No related merge requests found
import React from 'react'
import { StyleSheet, TextInput } from 'react-native'
import { KeyboardAvoidingView, StyleSheet, TextInput } from 'react-native'
import PropTypes from 'prop-types'
import { Colors, Spacing, Typography } from '../../styles'
const AppTextInput = ({ style, ...props }) => {
return <TextInput style={[styles.input, style]} {...props} />
return (
<KeyboardAvoidingView
behavior="padding"
keyboardVerticalOffset={250}
>
<TextInput style={[styles.input, style]} {...props} />
</KeyboardAvoidingView>
)
}
AppTextInput.propTypes = {
......
......@@ -215,10 +215,11 @@ class SymptomEditView extends Component {
<AppText>{symtomPage[symptom].note}</AppText>
<AppTextInput
multiline={true}
placeholder={sharedLabels.enter}
numberOfLines={3}
onChangeText={this.onEditNote}
value={noteText !== null ? noteText : ''}
placeholder={sharedLabels.enter}
testID='noteInput'
value={noteText !== null ? noteText : ''}
/>
</Segment>
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment