react-native-elements#SocialIcon JavaScript Examples
The following examples show how to use
react-native-elements#SocialIcon.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: socialicon.playground.jsx From playground with MIT License | 4 votes |
SocialIconPlayground = () => {
const params = useView({
componentName: "SocialIcon",
props: {
activityIndicatorStyle: {
type: PropTypes.Object,
value: ``,
description: "Style to render when in loading state"
},
button: { type: PropTypes.Boolean, value: false },
Component: {
type: PropTypes.ReactNode,
description: "React Native Component. Default => TouchableHighlight",
value: null,
},
disabled: {
type: PropTypes.Boolean,
value: false,
},
fontFamily: {
type: PropTypes.String,
description: "System font bold (iOS), Sans Serif Black (android)",
},
fontStyle: {
type: PropTypes.Object,
value: `{}`,
},
fontWeight: {
type: PropTypes.String,
description:
"specify font weight of title if set as a button with a title",
},
iconColor: {
type: PropTypes.String,
value: ``,
},
iconSize: {
type: PropTypes.Number,
value: 25,
},
iconStyle: {
type: PropTypes.Object,
value: `{}`,
},
iconType: {
type: PropTypes.String,
value: `font-awesome`,
},
light: {
type: PropTypes.Boolean,
value: false,
},
loading: {
type: PropTypes.Boolean,
value: false,
},
onLongPress: {
type: PropTypes.Function,
value: `() => console.log("onLongPress()")`,
},
onPress: {
type: PropTypes.Function,
value: `() => console.log("onPress()")`,
},
raised: {
type: PropTypes.Boolean,
value: false,
},
style: {
type: PropTypes.Object,
value: `{paddingHorizontal:10}`,
},
title: {
type: PropTypes.String,
value: "GitHub",
description: "title if made into a button.",
},
type: {
type: PropTypes.String,
value: "github",
},
underlayColor: {
type: PropTypes.String,
value: ``,
},
},
scope: {
SocialIcon,
},
imports: {
"react-native-elements": {
named: ["SocialIcon"],
},
},
});
return (
<React.Fragment>
<Playground params={params} />
</React.Fragment>
);
}