Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit c471e6c

Browse files
authored
Merge pull request #20 from BoostIO/fix_ios_keyboard_design
Fix iOS keyboard design
2 parents f305bba + d714bf8 commit c471e6c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/views/NoteModal.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,8 @@ export default class NoteModal extends React.Component {
128128
}
129129

130130
keyboardDidShow(e) {
131-
let newSize = Dimensions.get('window').height - e.endCoordinates.height - 100
132131
this.setState({
133-
visibleHeight: newSize,
132+
visibleHeight: Dimensions.get('window').height - e.endCoordinates.height - 100,
134133
})
135134
}
136135

@@ -175,7 +174,7 @@ export default class NoteModal extends React.Component {
175174
<ScrollView keyboardShouldPersistTaps='always'>
176175
<MultilineTextInput
177176
ref="TextInput"
178-
style={Platform.OS === 'android' ? { margin: 8, height: this.state.visibleHeight - 30} : { margin: 8, height: this.state.visibleHeight}}
177+
style={Platform.OS === 'android' ? { margin: 8, height: this.state.visibleHeight - 30} : { margin: 8, height: this.state.visibleHeight - 15}}
179178
onChangeText={(e) => this.onChangeText(e)}
180179
value={this.state.text}
181180
selectionChange={(e) => {

0 commit comments

Comments
 (0)