Skip to content

Commit

Permalink
LFG:187: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kusalshrestha committed Dec 18, 2017
1 parent c0ebc22 commit 63b6d05
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions app/screens/contact/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
View,
Text,
Image,
Keyboard,
SectionList,
ActivityIndicator,
LayoutAnimation,
Expand Down Expand Up @@ -38,7 +37,6 @@ const GUEST_EMAIL = '[email protected]'
currentSwipeIndex: 0,
searchedEmployees: [],
screenState: 'normal',
isKeyboardShowing: false,
}
}

Expand All @@ -55,17 +53,6 @@ const GUEST_EMAIL = '[email protected]'
this.props.fetchEmployeesAndDepartments()
}
}
this.screenHeight = getHeight()
this.keyboardDidShowListener = Keyboard.addListener('keyboardDidShow', this._keyboardDidShow);
this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', this._keyboardDidHide);
}

_keyboardDidShow = () => {
// this.setState({isKeyboardShowing: true});
}

_keyboardDidHide = () => {
this.setState({isKeyboardShowing: false});
}

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

_onSearchBarFocus = () => {
this.setState({isKeyboardShowing: true});
this.timeout = setTimeout(() => {
this.setState({ isSearching: true });
}, 300);
Expand Down Expand Up @@ -182,11 +168,12 @@ const GUEST_EMAIL = '[email protected]'

_renderSearchView = () => {
return (
<View style={[style.searchViewContainer, {height: this.state.isKeyboardShowing ? this.screenHeight - 280 : this.screenHeight - 115}]}>
<View style={style.searchViewContainer}>
<SearchContactView
data={this.state.searchedEmployees}
onPress={this._onCellSelection}
/>
<KeyboardSpacer/>
</View>
)
}
Expand Down

0 comments on commit 63b6d05

Please sign in to comment.