react-native-keybord-dismiss

1.0.3 • Public • Published

react-native-keyboard-dismiss

A React Native component that wraps TouchableWithoutFeedback to automatically dismiss the keyboard when tapped.

Installation

To use this component in your React Native project, you can install it via npm or yarn:

npm install react-native-keyboard-dismiss

or

yarn add react-native-keyboard-dismiss
import * as Native from "react-native";
import KeyboardDismiss from 'react-native-keyboard-dismiss';

export default (props) => {
  return(
    <KeyboardDismiss>
      <Native.TextInput placeholder="Input some text here..." />
    </KeyboardDismiss>
  )
}

Package Sidebar

Install

npm i react-native-keybord-dismiss

Weekly Downloads

4

Version

1.0.3

License

ISC

Unpacked Size

4.38 kB

Total Files

7

Last publish

Collaborators

  • batgerelt