Check out example codes for "android dismiss keyboard". It will help you in understanding the concepts better.

Code Example 1

InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(myEditText.getWindowToken(), 0);

Learn ReactJs, React Native from akashmittal.com