From a11a8b09d48250149a9e5867bfada62f546e4b58 Mon Sep 17 00:00:00 2001
From: Imam Ali Mustofa <32319439+darkterminal@users.noreply.github.com>
Date: Thu, 18 Aug 2022 02:46:23 +0700
Subject: [PATCH 1/2] feat: change TouchableWithoutFeedback
change TouchableOpacity with TouchableWithoutFeedback
---
index.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/index.js b/index.js
index f5473e3..2ed70fa 100644
--- a/index.js
+++ b/index.js
@@ -1,5 +1,5 @@
import React, { Component } from "react";
-import { TouchableOpacity } from "react-native";
+import { TouchableWithoutFeedback } from "react-native";
export default class DoubleTap extends Component {
constructor(props) {
@@ -52,9 +52,9 @@ export default class DoubleTap extends Component {
render() {
return (
-
+
{this.props.children}
-
+
);
}
From 86974811b03a82ba8dac9870338ce0397fc424d4 Mon Sep 17 00:00:00 2001
From: Imam Ali Mustofa <32319439+darkterminal@users.noreply.github.com>
Date: Thu, 18 Aug 2022 02:47:44 +0700
Subject: [PATCH 2/2] docs: using import statement and component naming
---
README.md | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 2bf2866..30c8d87 100644
--- a/README.md
+++ b/README.md
@@ -9,11 +9,13 @@ A wrapper component for React Native which supports both double and single tap.
## Usage
```js
+import DoubleTap from 'react-native-double-tap';
+
export default class App extends React.Component {
render() {
return (
- {
console.log("single tap");
}}
@@ -23,7 +25,7 @@ export default class App extends React.Component {
delay={200}
>
-
+
);
}