Social Button
Social buttons for login or signup apps.
import { SocialButton } from '@redshank/native';
How to use
In @redshank we provide 4 types of Social Button ready for use.
- apple
Examples
Default
You can display an button
APIs
SocialButton Props
Api props extends from Touchable
Attribute | Type | Accepted values | Description | Default |
---|---|---|---|---|
Component | Component | React Component | Change the element base | Ripple |
loading | boolean | true false | Show loading state for the button | false |
disabled | boolean | true false | Enable or disable state for the button | false |
onPress | function | () => any | Callback when you press button | - |
withMarginBottom | boolean | true false | Margin bottom in the element for separate views | false |
style | object | StyleProp<ViewStyle> | Style button wrapper | - |
provider | enum | SocialButtonProvider | Required provider for render UI | - |
text | string | Text String | Custom string to show | Continues with *Provider* |
SocialButton Provider
type SocialButtonProvider = 'google' | 'facebook' | 'twitter' | 'apple'
Community:
We're excited to see the community adopt @redshank/native, raise issues, and provide feedback. Whether it's a feature request, bug report, or a project to showcase, please get involved!
DiscordGithubContributing:
PR's on @redshank/native are always welcome, please see our contribution guidelines to learn how you can contribute to this project.