Skip to content

selmi-karim/rn-double-click

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rn-double-click

A Component for Double Click based on TouchableOpacity Wrapper.

Build for React Native App and works on both Android and iOS.

Installation

npm install --save rn-double-click

or 

yarn install rn-double-click

Usage

import React from 'react';
import { StyleSheet, Text, Alert } from 'react-native'
import DoubleClick from 'rn-double-click'

export default class App extends React.Component {

  dbclick() {
    Alert.alert('Double Click Succeed');
  }

  render() {
    return (
      <DoubleClick style={styles.container} onClick={this.dbclick}>
        <Text>ClickMe</Text>
      </DoubleClick>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});

Author

kerim selmi karimation

License

This project is licensed under the MIT License

About

A Component for Double Click based on TouchableOpacity Wrapper. Build for React Native App and works on both Android and iOS.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published