Skip to content

Commit

Permalink
Merge pull request #6205 from parasharrajat/keyboard-close
Browse files Browse the repository at this point in the history
close Keyboard when opening drawer
  • Loading branch information
mountiny authored Nov 4, 2021
2 parents fcd1dc2 + a60aa53 commit 97110f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/Navigation/Navigation.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import _ from 'underscore';
import React from 'react';
import {Keyboard} from 'react-native';
import {
StackActions,
DrawerActions,
Expand Down Expand Up @@ -44,6 +45,7 @@ function openDrawer() {
return;
}
navigationRef.current.dispatch(DrawerActions.openDrawer());
Keyboard.dismiss();
}

/**
Expand Down

0 comments on commit 97110f0

Please sign in to comment.