Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wrathchaos/react-native-social-button
Easy & Elegant Social Button for React Native
https://github.com/wrathchaos/react-native-social-button
android apple button freakycoder front-end google ios kuray react react-native react-native-social-button reactjs social
Last synced: 3 months ago
JSON representation
Easy & Elegant Social Button for React Native
- Host: GitHub
- URL: https://github.com/wrathchaos/react-native-social-button
- Owner: WrathChaos
- License: mit
- Created: 2020-05-10T12:15:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T22:05:50.000Z (over 1 year ago)
- Last Synced: 2024-10-13T17:14:39.798Z (3 months ago)
- Topics: android, apple, button, freakycoder, front-end, google, ios, kuray, react, react-native, react-native-social-button, reactjs, social
- Language: JavaScript
- Homepage: https://freakycoder.com
- Size: 6.23 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Battle Tested ✅](https://img.shields.io/badge/-Battle--Tested%20%E2%9C%85-03666e?style=for-the-badge)](https://github.com/WrathChaos/react-native-social-button)
[![React Native Social Button](https://img.shields.io/badge/-Easy%20%26%20Elegant%20Social%20Button%20for%20React%20Native-lightgrey?style=for-the-badge)](https://github.com/WrathChaos/react-native-social-button)
[![npm version](https://img.shields.io/npm/v/react-native-social-button.svg?style=for-the-badge)](https://www.npmjs.com/package/react-native-social-button)
[![npm](https://img.shields.io/npm/dt/react-native-social-button.svg?style=for-the-badge)](https://www.npmjs.com/package/react-native-social-button)
![Platform - Android and iOS](https://img.shields.io/badge/platform-Android%20%7C%20iOS-blue.svg?style=for-the-badge)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=for-the-badge)](https://github.com/prettier/prettier)
# Installation
Add the dependency:
```ruby
npm i react-native-social-button
```## Peer Dependencies
###### IMPORTANT! You need install them
Do not forget to go `ios` folder and `pod install`
```js
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",
"react-native-androw": "0.0.34",
"react-native-vector-icons": "^6.6.0",
"react-native-dynamic-vector-icons": "^0.1.1",
"@freakycoder/react-native-helpers": "^0.1.3"
```# Usage
## Import
```js
import SocialButton from "react-native-social-button";
```## Basic Usage
```js
{}} />
```## Advanced Usage
```js
}
onPress={() => {}}
/>
```# Configuration - Props
| Property | Type | Default | Description |
| ------------------- | :-----------: | :--------------------: | ------------------------------------------------------------------------------ |
| text | string | Continue with Facebook | change the button's inside text |
| onPress | function | default | use this to set your own function for onPress |
| width | string/number | ScreenWidth \* 0.8 | change the main button's width |
| height | string/number | 70 | change the main button's height |
| borderRadius | number | 24 | change the main button's border radius |
| backgroundColor | color | #2d93e7 | change the main button's background color |
| iconWidth | string/number | 55 | change the icon's width |
| iconHeight | string/number | 55 | change the icon's height |
| iconBorderRadius | number | 24 | change the icon's container's border radius |
| iconBackgroundColor | color | #fdfdfd | change the icon's container's background color |
| iconComponent | component | Icon | use this to set your own icon component instead of default one |
| shadowStyles | style | default | use this to set your own style for main button's shadow instead of default one |
| textStyle | style | default | use this to set your own style for main button's text instead of default one |## Future Plans
- [x] ~~LICENSE~~
- [ ] Write an article about the lib on Medium# Credits
- Background Photo by [Dave](https://unsplash.com/@johnwestrock?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/)
- [Logo vector created by freepik - www.freepik.com](https://www.freepik.com/free-photos-vectors/logo)
## Author
FreakyCoder, [email protected]
## License
React Native Social Button is available under the MIT license. See the LICENSE file for more info.