react-native-touch-blocker
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

react-native-touch-blocker

GitHub Workflow Status npm typescript License TS-Standard - Typescript Standard Style Guide

TouchBlocker is a React Native and React Native Web component that helps blocking the user from interacting with children components.

Install

npm install react-native-touch-blocker --save

or

yarn add react-native-touch-blocker

Demo

Test it online on Expo

Usage

<TouchBlocker>
  <Button
    title="Can't Touch This 😎"
    onPress={() => null}
  />
</TouchBlocker>

Props

Prop Default Type Description
enableTouchEvents false Boolean Allow children to receive touch events

The TouchBlocker component also supports React Native View Props.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    13
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    13
  • 1.0.2
    13
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i react-native-touch-blocker

Weekly Downloads

26

Version

1.0.3

License

MIT

Unpacked Size

14.8 kB

Total Files

27

Last publish

Collaborators

  • youedd