Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

React Native Social Button

[![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)


React Native Social Button
React Native Social Button

# 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.