Skip to content

Commit

Permalink
fix: Gradient is customizable now
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathChaos committed Apr 13, 2021
1 parent 6d588ac commit f161536
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const App = () => {
</View>
<View style={styles.classicButtonContainer}>
<Button
solid
gradient
text="Hello"
backgroundColor="#FFAFBD"
textStyle={{ color: "#fff" }}
Expand Down
4 changes: 2 additions & 2 deletions lib/ClassicButton/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ const Button: React.FC<IButtonProps> = ({
const renderGradient = () => {
return (
<LinearGradient
style={[styles.container, style]}
{...rest}
start={{ x: 0, y: 0 }}
end={{ x: 1, y: 0 }}
style={[styles.container, style]}
colors={["#FFAFBD", "#ffc3a0"]}
{...rest}
>
{renderContent()}
</LinearGradient>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@freakycoder/react-native-button",
"version": "1.0.2",
"version": "1.0.3",
"description": "Fully customizable, Gradient, Outline and Solid Button for React Native.",
"keywords": [
"google",
Expand Down

0 comments on commit f161536

Please sign in to comment.