From e7f563e8ef18a641a725e2e77f2e08fb4d7d856b Mon Sep 17 00:00:00 2001 From: ardijax Date: Thu, 19 May 2016 09:49:02 +0700 Subject: [PATCH 1/4] Smaller button size to match bozapp design --- ActionButton.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ActionButton.js b/ActionButton.js index 9ff61ef..41767d4 100644 --- a/ActionButton.js +++ b/ActionButton.js @@ -1,5 +1,4 @@ -import React, { Component, PropTypes } from 'react'; -import { StyleSheet, Text, View, Animated, Easing, TouchableOpacity, PixelRatio } from 'react-native'; +import React, { PropTypes, Component, StyleSheet, Text, View, Animated, Easing, TouchableOpacity, PixelRatio } from 'react-native'; import ActionButtonItem from './ActionButtonItem'; const alignItemsMap = { @@ -42,12 +41,12 @@ export default class ActionButton extends Component { position = 'center', offsetX  = 10, offsetY = 4, - size = 42; + size = 45; } else { position = 'right', offsetX  = 30, offsetY = 30, - size = 56; + size = 45; } this.state.position = this.props.position || position; @@ -118,7 +117,6 @@ export default class ActionButton extends Component { { this.props.onPress() if (this.props.children) this.animateButton() From 2c527c6101bd61e0efab9992621394ddf1d51062 Mon Sep 17 00:00:00 2001 From: ajaxangular Date: Thu, 19 May 2016 09:51:18 +0700 Subject: [PATCH 2/4] Update README.md Edit installation notes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 48c6185..b856f42 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ customizable multi-action-button component for react-native ### Installation ```bash -npm i react-native-action-button --save +npm i https://github.com/ajaxangular/react-native-md-textinput --save ``` ### Usage From 880f8f2ac31f292b0d7d0ad6f131e09875af3620 Mon Sep 17 00:00:00 2001 From: ajaxangular Date: Thu, 19 May 2016 10:09:12 +0700 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b856f42..0c30a84 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ customizable multi-action-button component for react-native ### Installation ```bash -npm i https://github.com/ajaxangular/react-native-md-textinput --save +npm i https://github.com/ajaxangular/react-native-action-button --save ``` ### Usage From 8cb3f688292fc92b8cb322c453ea08d0f0ea9bf6 Mon Sep 17 00:00:00 2001 From: ardijax Date: Thu, 1 Sep 2016 09:05:17 +0700 Subject: [PATCH 4/4] Separate react from react native --- ActionButton.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ActionButton.js b/ActionButton.js index 41767d4..51df3c6 100644 --- a/ActionButton.js +++ b/ActionButton.js @@ -1,4 +1,5 @@ -import React, { PropTypes, Component, StyleSheet, Text, View, Animated, Easing, TouchableOpacity, PixelRatio } from 'react-native'; +import React, { PropTypes, Component } from 'react'; +import { StyleSheet, Text, View, Animated, Easing, TouchableOpacity, PixelRatio } from 'react-native'; import ActionButtonItem from './ActionButtonItem'; const alignItemsMap = {