All Projects → thomaswang → React Native Gradient Buttons

thomaswang / React Native Gradient Buttons

Licence: mit
A lightweight, customizable and haptic Gradient Button component for React Native

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Native Gradient Buttons

Vue Info Card
Simple and beautiful card component with an elegant spark line, for VueJS.
Stars: ✭ 159 (-8.62%)
Mutual labels:  component
Mime
The MIME component allows manipulating MIME types.
Stars: ✭ 2,174 (+1149.43%)
Mutual labels:  component
Vue Backtotop
A Back-to-top component for Vue.js, which scroll page to the top when clicked
Stars: ✭ 168 (-3.45%)
Mutual labels:  component
React Native Modals
A react native modals library. Swipeable. Highly customizable. Support multi modals & Support custom animation. For IOS & Android.
Stars: ✭ 2,013 (+1056.9%)
Mutual labels:  component
Stimulus Autocomplete
Stimulus autocomplete component
Stars: ✭ 165 (-5.17%)
Mutual labels:  component
React Native Pull To Refresh
The Pull-To-Refresh component for React Native (iOS/Android)
Stars: ✭ 166 (-4.6%)
Mutual labels:  component
Dcoaboutwindow
👋 A replacement for the standard Mac app About dialog.
Stars: ✭ 159 (-8.62%)
Mutual labels:  component
React Nprogress
⌛️ A React primitive for building slim progress bars.
Stars: ✭ 173 (-0.57%)
Mutual labels:  component
Things Calendar
Simple but elegant datepicker for the web — inspired by Things for mac
Stars: ✭ 165 (-5.17%)
Mutual labels:  component
Reactopt
A CLI React performance optimization tool that identifies potential unnecessary re-rendering
Stars: ✭ 1,975 (+1035.06%)
Mutual labels:  component
Xmpp.js
XMPP for JavaScript
Stars: ✭ 2,006 (+1052.87%)
Mutual labels:  component
Requirejs Demo
《RequreJS学习笔记》
Stars: ✭ 164 (-5.75%)
Mutual labels:  component
Hitchcock
The Master of Suspense 🍿
Stars: ✭ 167 (-4.02%)
Mutual labels:  component
Vue Notifyjs
Minimalist 1kb Notification component
Stars: ✭ 160 (-8.05%)
Mutual labels:  component
React Native List Popover
Popover to render a selectable list
Stars: ✭ 168 (-3.45%)
Mutual labels:  component
React Console Emulator
👨‍💻 A simple, powerful and highly customisable Unix terminal emulator for React.
Stars: ✭ 160 (-8.05%)
Mutual labels:  component
React Trading Ui
Component library for trading applications 😰📉💸
Stars: ✭ 166 (-4.6%)
Mutual labels:  component
Fmxui
FMX跨平台基础UI库
Stars: ✭ 173 (-0.57%)
Mutual labels:  component
React Twitter Embed
Simplest way to add twitter widgets to your react project.
Stars: ✭ 171 (-1.72%)
Mutual labels:  component
React Jobs
Asynchronously resolve data for your components, with support for server side rendering.
Stars: ✭ 167 (-4.02%)
Mutual labels:  component

React Native Gradient Buttons Tweet

Version Platform License

Lightweight, customizable and haptic Gradient Buttons for React Native.

Examples

Requirements

Requires React and React Native.

For pure React Native projects you must install react-native-unimodules as part of Expo's bare workflow.

Installation

yarn add react-native-gradient-buttons
# or
npm install --save react-native-gradient-buttons

Usage

# ES6 import
import GradientButton from 'react-native-gradient-buttons';

Props

  • style: ViewStyle
    • No default
    • options: any styles you want to apply to the button
  • text: String
    • No default
    • options: any string
  • textStyle: TextSyle
    • default: {}
    • options: any styles you want to apply to the text
  • gradientBegin: String
    • default: '#00d2ff'
    • options: Any hex, rgb, or color
  • gradientEnd: String
    • default: '#3a47d5'
    • options: Any hex, rgb, or color
  • gradientDirection: String
    • default: 'horizontal'
    • options: 'horizontal', 'vertical', 'diagonal'
  • height: Number or String (for %)
    • default: 75
    • options: any number
  • width: Number or String (for %)
    • No default
    • options: any number
  • radius: Number
    • default: 50
    • options: any number
  • impact: Boolean
    • default: false
    • options: true or false
  • impactStyle: String
    • default: 'Heavy'
    • options: 'Heavy', 'Medium', 'Light'
  • onPressAction: Function
    • No default
    • options: any function you want to pass to the Gradient Button
  • disabled: Boolean
    • default: false
  • disabledGradientBegin: String
    • default: '#D3D3D3'
    • options: Any hex, rgb, or color
  • disabledGradientEnd: String
    • default: '#696969'
    • options: Any hex, rgb, or color

Design+Code Specific Gradient Props

  • purpleViolet
  • violetPink
  • pinkDarkGreen
  • blueViolet
  • blueMarine
  • deepBlue

Examples

  <View style={{flex: 1, justifyContent: 'space-evenly', alignItems: 'center', marginVertical: 24}}>
    <GradientButton
      style={{ marginVertical: 8 }}
      text="Gradient Button #1"
      textStyle={{ fontSize: 20 }}
      gradientBegin="#874f00"
      gradientEnd="#f5ba57"
      gradientDirection="diagonal"
      height={60}
      width={300}
      radius={15}
      impact
      impactStyle='Light'
      onPressAction={() => alert('You pressed me!')}
    />

    <GradientButton
      style={{ marginVertical: 8 }}
      textStyle={{ fontSize: 20 }}
      gradientBegin="#874f00"
      gradientEnd="#f5ba57"
      gradientDirection="diagonal"
      height={60}
      width={300}
      radius={15}
      impact
      impactStyle='Light'
      onPressAction={() => alert('You pressed me!')}
    >
      Gradient Button #2
    </GradientButton>

    <GradientButton text="Purple Violet" width='90%' purpleViolet impact />
    <GradientButton text="Violet Pink" width='90%' violetPink impact />
    <GradientButton text="Pink Dark Green" width='90%' pinkDarkGreen impact />
    <GradientButton text="Blue Violet" width='90%' blueViolet impact />
    <GradientButton text="Blue Marine" width='90%' blueMarine impact />
    <GradientButton text="Deep Blue" width='90%' deepBlue impact />
    <GradientButton text="Disabled" width='90%' disabled impact />
  </View>

For a more detailed example, see my example project: React Native Auth Screens.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].