Dismiss Keyboard React-Native

Use built-in Keyboard Module:

import { Keyboard } from 'react-native';

Keyboard.dismiss(); 

Was able to achieve this with

import dismissKeyboard from 'react-native/Libraries/Utilities/dismissKeyboard'

And then at the point where I need to toggle the keyboard off

dismissKeyboard();

-- -- EDIT -- --

Importing like this works equally as well.

import dismissKeyboard from 'dismissKeyboard'

-- -- EDIT #2 -- --

My original answer is now outdated. The correct way is mentioned below by @Chen-Tsu Lin

import { Keyboard } from 'react-native';

Keyboard.dismiss();