Skip to content

Commit

Permalink
Renamed Prop to loadingRight
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeanmsilva89 committed Oct 7, 2016
1 parent 13dd0ec commit 50906e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/buttons/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Button = ({
Component,
disabled,
loading,
loadingLeft,
loadingRight,
activityIndicatorStyle,
buttonStyle,
borderRadius,
Expand Down Expand Up @@ -127,7 +127,7 @@ const Button = ({
icon && !iconRight && iconElement
}
{
loading && !loadingLeft && loadingElement
loading && !loadingRight && loadingElement
}
<Text
style={[
Expand All @@ -142,7 +142,7 @@ const Button = ({
{title}
</Text>
{
loading && loadingLeft && loadingElement
loading && loadingRight && loadingElement
}
{
icon && iconRight && iconElement
Expand Down Expand Up @@ -172,7 +172,7 @@ Button.propTypes = {
disabled: PropTypes.bool,
loading: PropTypes.bool,
activityIndicatorStyle: PropTypes.any,
loadingLeft: PropTypes.bool
loadingRight: PropTypes.bool
}

styles = StyleSheet.create({
Expand Down

0 comments on commit 50906e6

Please sign in to comment.