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}
>
-
+
);
}
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}
-
+
);
}