react-native-ntc-pressable
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

react-native-ntc-pressable

A customized version of Pressable(react-native) with onPress throttle feature

Installation

npm install react-native-ntc-pressable

or

yarn add react-native-ntc-pressable

Usage

import Pressable, { 
  // TouchableOpacity,
  // TouchableHighlight,
  // TouchableWithoutFeedback
} from 'react-native-ntc-pressable';

// ...
  <Pressable
    // throttleTime={300} // Default is 300ms
    // opacity={0.3} // Default is 0.3
    style={{
      // ...
    }}
    onPress={() => {
      // ...
    }}
  >
    <Text>
      NTC Pressable
    <Text>
  </Pressable>
// ...

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i react-native-ntc-pressable

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

38.8 kB

Total Files

17

Last publish

Collaborators

  • nguyentc21