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: 7 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 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T22:05:50.000Z (about 2 years ago)
- Last Synced: 2025-02-26T18:23:31.078Z (7 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
[](https://github.com/WrathChaos/react-native-social-button)
[](https://github.com/WrathChaos/react-native-social-button)
[](https://www.npmjs.com/package/react-native-social-button)
[](https://www.npmjs.com/package/react-native-social-button)

[](https://opensource.org/licenses/MIT)
[](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, kurayogun@gmail.com
## License
React Native Social Button is available under the MIT license. See the LICENSE file for more info.