Skip to content

Commit 63b6d05

Browse files
committed
LFG:187: fixes
1 parent c0ebc22 commit 63b6d05

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

app/screens/contact/contact.js

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
View,
44
Text,
55
Image,
6-
Keyboard,
76
SectionList,
87
ActivityIndicator,
98
LayoutAnimation,
@@ -38,7 +37,6 @@ const GUEST_EMAIL = '[email protected]'
3837
currentSwipeIndex: 0,
3938
searchedEmployees: [],
4039
screenState: 'normal',
41-
isKeyboardShowing: false,
4240
}
4341
}
4442

@@ -55,17 +53,6 @@ const GUEST_EMAIL = '[email protected]'
5553
this.props.fetchEmployeesAndDepartments()
5654
}
5755
}
58-
this.screenHeight = getHeight()
59-
this.keyboardDidShowListener = Keyboard.addListener('keyboardDidShow', this._keyboardDidShow);
60-
this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', this._keyboardDidHide);
61-
}
62-
63-
_keyboardDidShow = () => {
64-
// this.setState({isKeyboardShowing: true});
65-
}
66-
67-
_keyboardDidHide = () => {
68-
this.setState({isKeyboardShowing: false});
6956
}
7057

7158
_onSearchBarTextChange = (text) => {
@@ -74,7 +61,6 @@ const GUEST_EMAIL = '[email protected]'
7461
}
7562

7663
_onSearchBarFocus = () => {
77-
this.setState({isKeyboardShowing: true});
7864
this.timeout = setTimeout(() => {
7965
this.setState({ isSearching: true });
8066
}, 300);
@@ -182,11 +168,12 @@ const GUEST_EMAIL = '[email protected]'
182168

183169
_renderSearchView = () => {
184170
return (
185-
<View style={[style.searchViewContainer, {height: this.state.isKeyboardShowing ? this.screenHeight - 280 : this.screenHeight - 115}]}>
171+
<View style={style.searchViewContainer}>
186172
<SearchContactView
187173
data={this.state.searchedEmployees}
188174
onPress={this._onCellSelection}
189175
/>
176+
<KeyboardSpacer/>
190177
</View>
191178
)
192179
}

0 commit comments

Comments
 (0)