diff --git a/README.md b/README.md index a21e4ca..a56fbc5 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,11 @@ function Button() { | textFamily | `Number` | `null` | Button default label text font family | | style                 | `Style`     | `null`   | Button container custom styles | +## Web version +Checkout the web version of the Awesome Button UI component at [rcaferati/react-awesome-button](https://github.com/rcaferati/react-awesome-button) + +[](https://caferati.me/demo/react-awesome-button) + ## About the Author #### Rafael Caferati diff --git a/demo/.expo/packager-info.json b/demo/.expo/packager-info.json index 7391ba7..ceb9f6a 100644 --- a/demo/.expo/packager-info.json +++ b/demo/.expo/packager-info.json @@ -1,9 +1,9 @@ { "devToolsPort": 19002, - "expoServerPort": null, - "packagerPort": null, - "packagerPid": null, - "expoServerNgrokUrl": null, - "packagerNgrokUrl": null, - "ngrokPid": null + "expoServerPort": 19000, + "packagerPort": 19001, + "packagerPid": 1665, + "expoServerNgrokUrl": "https://in-qqr.rcaferati.demo.exp.direct", + "packagerNgrokUrl": "https://packager.in-qqr.rcaferati.demo.exp.direct", + "ngrokPid": 1754 } \ No newline at end of file diff --git a/demo/package-lock.json b/demo/package-lock.json index 5aac36c..243ae4a 100644 --- a/demo/package-lock.json +++ b/demo/package-lock.json @@ -7421,9 +7421,9 @@ "integrity": "sha1-/eSsxl7qWF0osWTQw3FqQhKaaOQ=" }, "react-native-really-awesome-button": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/react-native-really-awesome-button/-/react-native-really-awesome-button-1.4.0.tgz", - "integrity": "sha512-Ib9sy798szOx/m0AnxKuETuJexysoprbwmpGZkdhB+QsOg8RFomKcX1lvqANc/EQxwrCJJRCSaHXGkwujdeq7Q==" + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/react-native-really-awesome-button/-/react-native-really-awesome-button-1.4.1.tgz", + "integrity": "sha512-inPImrssFSvZNYh54GEIPRbyY0vG+qQF50INkq3risyoIeZQT91r/wtlJcZL1cWXHVByu0a7VNvt6lk2YBf+9g==" }, "react-native-reanimated": { "version": "1.0.0-alpha.11", diff --git a/demo/package.json b/demo/package.json index 4d72f49..68c86d5 100644 --- a/demo/package.json +++ b/demo/package.json @@ -15,7 +15,7 @@ "expo": "^32.0.0", "react": "16.5.0", "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz", - "react-native-really-awesome-button": "1.4.1", + "react-native-really-awesome-button": "1.4.2", "react-navigation": "^3.0.9" }, "devDependencies": { diff --git a/src/index.js b/src/index.js index aefc8e9..e139cfe 100644 --- a/src/index.js +++ b/src/index.js @@ -198,24 +198,25 @@ export default class Button extends React.Component { duration: ANIMATED_TIMING_OFF, callback: () => { this.pressing = false; - this.press(); } }); }; pressOut = () => { - if ( - this.props.disabled === true || - !this.props.children || - this.animating === true - ) { + if (this.props.disabled === true || !this.props.children) { return false; } + if (this.animating === true) { + this.press(); + return; + } if (this.pressing === false) { + this.press(); this.release(); return; } this.timeout = setTimeout(() => { + this.press(); this.release(); }, ANIMATED_TIMING_OFF / 2.5); };