You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create Secondary button according to design system
Create Destructive button according to design system
Example of component
importtype{IconProps}from'react-native-vector-icons/Icon';typeRestrictedIconProps=Omit<IconProps,'size'|'color'|'style'>;typeIconButtonProps={label: string;onPress: ()=>void;fullWidth?:booleanicon?: React.ReactElement<RestrictedIconProps>;//This enforces a react-native-vector-icon, but the size, color, and style cannot be set};exportconstPrimaryButton=({
label,
onPress,
icon,})=>{return(<TouchableOpacitystyle={...opinionatedstyle}onPress={onPress}>{icon &&<Textstyle={...opinionatedcolorandsize}>{icon}</Text>}//vectoriconsarebuiltofftext,soyoucanpassthesizeandcolortotheparenttexticon,andtheiconwillinheritit.<HeaderTextstyle={...opinionatedcolor}variant="header5">{label}</HeaderText></TouchableOpacity>);};
The text was updated successfully, but these errors were encountered:
Create new Button components with the design system opinionated styles.
To To
Example of component
The text was updated successfully, but these errors were encountered: