Skip to main content
An enhanced version of the Rainbow Button with improved gradient border animations and additional customization options.

Installation

Import

Props

Examples

Basic Usage

Custom Configuration

With Theme Integration

Features

  • Enhanced gradient border animation
  • Improved performance over RainbowButton
  • More customization options
  • Smoother transitions
  • Better theme integration
  • Optimized render cycles

Animation Details

The enhanced gradient animation uses:
  • Reanimated 2’s native driver
  • Optimized color interpolation
  • Improved gradient positioning
  • Smoother rotation transitions

Style Guidelines

  1. Color Selection:
    • Use complementary colors for gradients
    • Maintain proper contrast with content
    • Consider theme compatibility
  2. Animation Timing:
    • Keep duration between 2-4 seconds
    • Use smooth easing functions
    • Consider reduced motion preferences
  3. Layout:
    • Maintain consistent spacing with m prop
    • Use standard height values
    • Consider button hierarchy in UI

Performance Notes

  • Uses native thread for animations
  • Optimized gradient calculations
  • Minimal JS bridge communication
  • Efficient rerender prevention