Button Components
Rainbow Button 3
Button component with full gradient background animation
A button component featuring a rotating full gradient background animation effect.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Button component with full gradient background animation
npm install react-native-reanimated expo-linear-gradient
import { RainbowButton3 } from '@/components/common/buttons/rainbow/rainbow-button3';
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
onPress | () => void | Yes | - | Function called when pressed |
colors | string[] | No | ['#1DB954', '#00ff4e', '#333'] | Gradient colors |
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 |
function Example() {
return (
<RainbowButton3
onPress={() => console.log('Pressed')}
colors={['#1DB954', '#00ff4e', '#333']}
duration={3000}
>
<Text>Gradient Background</Text>
</RainbowButton3>
);
}
Was this page helpful?