
Security News
New CNA Scorecard Tool Ranks CVE Data Quality Across the Ecosystem
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
@freakycoder/react-native-button
Advanced tools
Fully customizable, Gradient, Outline and Solid Button for React Native.
Add the dependency:
npm i @freakycoder/react-native-button
"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"
import { Button, GooglePlayButton } from "@freakycoder/react-native-button";
<GooglePlayButton
text="Open"
textColor="#fff"
rippleColor="white"
/>
<GooglePlayButton outline text="Uninstall" />
<Button gradient textColor="white" shadowColor="#ff738b" />
<Button
solid
textColor="white"
shadowColor="#ff738b"
backgroundColor="#FFAFBD"
/>
<Button outline color="#ff738b" textColor="#ff738b" borderColor="#ff738b" />
Property | Type | Default | Description |
---|---|---|---|
outline | boolean | true | make the button outline |
solid | boolean | false | make the button with a solid background and a shadow |
gradient | boolean | false | make the button with a gradient background and a shadow |
width | number | 150 | change the button's width |
height | number | 50 | change the button's height |
borderRadius | number | 32 | change the button's border radius |
text | string | null | set the button's text |
textColor | color | #757575 | change the button's text color |
textStyle | style | style | set your own style for the button's style |
borderWidth | number | 0.3 | change the outline's border width |
borderColor | color | #757575 | change the outline's border color |
shadowColor | color | #757575 | change the solid and gradient's shadow color |
backgroundColor | color | #757575 | change the solid's background color |
iconDisable | boolean | false | disable the left icon if you want |
| 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 |
FreakyCoder, kurayogun@gmail.com
React Native Button Library is available under the MIT license. See the LICENSE file for more info.
0.2.0 (2019-09-07)
⚠ BREAKING CHANGE: Way of import is changed! GooglePlayButton with newest Material Design 2 is added 🎉
Merged pull requests:
FAQs
Did you know?
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.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.