Skip to content

Commit

Permalink
dismiss keyboard when click outside #176
Browse files Browse the repository at this point in the history
  • Loading branch information
kenpower committed Jun 25, 2021
1 parent 64d66e1 commit 333510d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/screens/EmoteTrackerScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export default class EmoteTrackerScreen extends React.Component {
return (
<>
<SafeAreaView style={{ flex: 0, backgroundColor: themeColor }} />
<KeyboardAwareScrollView style={{backgroundColor: "#fff"}} keyboardShouldPersistTaps="always">
<KeyboardAwareScrollView style={{backgroundColor: "#fff"}} keyboardShouldPersistTaps="handled">
<HeaderBanner color={themeColor} imageSource={require('../assets/images/EmoteTracker/mood_icon.png')} />
<HorizontalLineWithText color={themeColor} text={LanguageManager.getInstance().getText("DATE")} />
<DayPicker ref={component => this._dayChooser = component} textString="SYMPTOM_OCCURED"
Expand Down
2 changes: 1 addition & 1 deletion src/screens/FoodDiaryScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export default class FoodDiaryScreen extends React.Component {
<SafeAreaView style={{flex: 0, backgroundColor: themeColor}}/>
<KeyboardAwareScrollView style={{backgroundColor: "#FFFFFF"}} extraScrollHeight={20}
scrollEnabled={true} enableAutomaticScroll={true}
keyboardShouldPersistTaps="always">
keyboardShouldPersistTaps="handled">
<HeaderBanner color={themeColor}
imageSource={require('../assets/images/FoodTracker/meal_icon.png')}/>
<HorizontalLineWithText color={themeColor} text={LanguageManager.getInstance().getText("DATE")}/>
Expand Down
2 changes: 1 addition & 1 deletion src/screens/GIPScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export default class GIPScreen extends React.Component {
return (
<>
<SafeAreaView style={{flex: 0, backgroundColor: themeColor}}/>
<KeyboardAwareScrollView style={{backgroundColor: "#fff"}} keyboardShouldPersistTaps="always">
<KeyboardAwareScrollView style={{backgroundColor: "#fff"}} keyboardShouldPersistTaps="handled">
<HeaderBanner color={themeColor} imageSource={require('../assets/images/GipTracker/gip_icon.png')}/>

<HorizontalLineWithText color={themeColor} text={LanguageManager.getInstance().getText("DATE")}/>
Expand Down
2 changes: 1 addition & 1 deletion src/screens/SymptomTrackerScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export default class SymptomTrackerScreen extends React.Component {
return (
<>
<SafeAreaView style={{ flex: 0, backgroundColor: themeColor }} />
<KeyboardAwareScrollView style={{ backgroundColor: "#fff" }} keyboardShouldPersistTaps="always">
<KeyboardAwareScrollView style={{ backgroundColor: "#fff" }} keyboardShouldPersistTaps="handled">
{/* <TextInput onSubmitEditing={Keyboard.dismiss} /> */}
<HeaderBanner color={themeColor} imageSource={require('../assets/images/SymptomTracker/add_symptom_icon.png')} />
<HorizontalLineWithText color={themeColor} text={LanguageManager.getInstance().getText("DATE")} />
Expand Down

0 comments on commit 333510d

Please sign in to comment.