Skip to main content
edited body
Source Link

Keyboard module is used to control keyboard events.

  • import { Keyboard } from 'react-native'

  • Add below code in render method.

    render() { return <TextInput onSubmitEditing={Keyboard.dismiss} />; }

You can use -

keyboardKeyboard.dismiss() 

static dismiss() Dismisses the active keyboard and removes focus as per react native documents.

Keyboard module is used to control keyboard events.

  • import { Keyboard } from 'react-native'

  • Add below code in render method.

    render() { return <TextInput onSubmitEditing={Keyboard.dismiss} />; }

You can use -

keyboard.dismiss() 

static dismiss() Dismisses the active keyboard and removes focus as per react native documents.

Keyboard module is used to control keyboard events.

  • import { Keyboard } from 'react-native'

  • Add below code in render method.

    render() { return <TextInput onSubmitEditing={Keyboard.dismiss} />; }

You can use -

Keyboard.dismiss() 

static dismiss() Dismisses the active keyboard and removes focus as per react native documents.

Source Link

Keyboard module is used to control keyboard events.

  • import { Keyboard } from 'react-native'

  • Add below code in render method.

    render() { return <TextInput onSubmitEditing={Keyboard.dismiss} />; }

You can use -

keyboard.dismiss() 

static dismiss() Dismisses the active keyboard and removes focus as per react native documents.