Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Material Design inspired button with ripple effect animation
npm install react-native-reanimated react-native-gesture-handler expo-haptics
import RippleButton from '@/components/common/buttons/ripple-button';
onPress
() => void
color
string
icon
React.ReactNode
iconPosition
'left' | 'right'
'left'
loading
boolean
false
disabled
duration
number
800
height
BUTTON_HEIGHT.md
borderRadius
BORDER_RADIUS.md
function Example() { return ( <RippleButton onPress={() => console.log('Pressed')} color="#1DB954" icon={<Icon name="star" />} iconPosition="left" > <Text>Ripple Effect</Text> </RippleButton> ); }
Was this page helpful?