You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@freakycoder/react-native-button

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@freakycoder/react-native-button

Fully customizable, Gradient, Outline and Solid Button for React Native.

0.2.11
Source
npmnpm
Version published
Weekly downloads
2
-71.43%
Maintainers
1
Weekly downloads
 
Created
Source
React Native Button

Battle Tested ✅

Fully customizable, Gradient, Outline and Solid Button for React Native.

npm version npm Platform - Android and iOS License: MIT styled with prettier

React Native Button React Native Button

Installation

Add the dependency:

React Native:

npm i @freakycoder/react-native-button

Peer Dependencies

IMPORTANT! You need install them.
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",
"react-native-androw": "0.0.31",
"react-native-vector-icons": ">= 6.x.x",
"react-native-linear-gradient": ">= 2.5.x",
"react-native-dynamic-vector-icons": ">= x.x.x"

Button Component Options

  • Button (ClassicButton)
  • GooglePlayButton (Material Design 2)

Import

import { Button, GooglePlayButton } from "@freakycoder/react-native-button";

GooglePlayButton Usage (Material Design 2)

Solid:

<GooglePlayButton
  text="Open"
  textColor="#fff"
  rippleColor="white"
/>

Outline:

<GooglePlayButton outline text="Uninstall" />

Button Usage (Classic Button)

Gradient Button Usage

<Button gradient textColor="white" shadowColor="#ff738b" />

Solid Background Usage

<Button
  solid
  textColor="white"
  shadowColor="#ff738b"
  backgroundColor="#FFAFBD"
/>

Outline Button Usage

<Button outline color="#ff738b" textColor="#ff738b" borderColor="#ff738b" />

Configuration - Props

PropertyTypeDefaultDescription
outlinebooleantruemake the button outline
solidbooleanfalsemake the button with a solid background and a shadow
gradientbooleanfalsemake the button with a gradient background and a shadow
widthnumber150change the button's width
heightnumber50change the button's height
borderRadiusnumber32change the button's border radius
textstringnullset the button's text
textColorcolor#757575change the button's text color
textStylestylestyleset your own style for the button's style
borderWidthnumber0.3change the outline's border width
borderColorcolor#757575change the outline's border color
shadowColorcolor#757575change the solid and gradient's shadow color
backgroundColorcolor#757575change the solid's background color
iconDisablebooleanfalsedisable the left icon if you want

Icon Props

| name | string | star | change the icon name from React Native Vector Icons | | type | string | FontAwesome | change the icon type from React Native Vector Icons | | color | color | white | change the icon color | | size | number | 15 | change the icon size |

ToDos

  • LICENSE
  • Expo Version
  • Write an article about the lib on Medium

Change Log

0.2.0 (2019-09-07)

Full Changelog

⚠ BREAKING CHANGE: Way of import is changed! GooglePlayButton with newest Material Design 2 is added 🎉

Merged pull requests:

0.0.15 (2019-08-17)

* This Change Log was automatically generated by github_changelog_generator

Author

FreakyCoder, kurayogun@gmail.com

License

React Native Button Library is available under the MIT license. See the LICENSE file for more info.

Keywords

google

FAQs

Package last updated on 08 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.