Enhanced button component with customizable gradient border animation
Prop | Type | Required | Default | Description |
---|---|---|---|---|
onPress | () => void | Yes | - | Function called when pressed |
colors | string[] | No | ['#1DB954', '#00ff4e', '#333'] | Gradient colors array |
duration | number | No | ANIMATION_DURATION.D30 | Animation duration |
bgColor | string | No | theme.background | Background color |
height | number | No | BUTTON_HEIGHT.md | Button height |
borderRadius | number | No | BORDER_RADIUS.md | Border radius |
m | number | No | - | Margin override |
style | ViewStyle | No | - | Container style |
buttonStyle | ViewStyle | No | - | Inner button style |
m
prop