Button Components
Shiny Button
Button component with animated shine effect
A button component that features an animated shine effect moving across its surface.
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 animated shine effect
npm install react-native-reanimated expo-linear-gradient
import ShinyButton from '@/components/common/buttons/shiny-button';
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
onPress | () => void | No | - | Function called when pressed |
bgColor | string | No | theme.background | Background color |
buttonColor | string | No | theme.shinyButtonBorderColor | Shine effect color |
loading | boolean | No | false | Loading state |
disabled | boolean | No | false | Disabled state |
title | string | No | - | Button text |
titleType | ThemedTextProps['type'] | No | 'default' | Title text style |
height | number | No | BUTTON_HEIGHT.md | Button height |
width | number | string | No | '100%' | Button width |
function Example() {
return (
<ShinyButton
onPress={() => console.log('Pressed')}
buttonColor="#1DB954"
title="Shiny Button"
height={50}
width={200}
/>
);
}
Was this page helpful?