Skip to content

Commit

Permalink
feat: add serializable props to PayPalCheckoutButton component
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodrus committed Apr 23, 2020
1 parent c1ac3ce commit 0b2d1e6
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,17 @@ type LimitedButtonProps = Omit<ButtonProps, 'color' | 'light' | 'link' | 'palett
export type ButtonShape = 'pill' | 'rect';
export type ButtonTheme = 'gold' | 'blue' | 'silver' | 'black';

export interface PayPalCheckoutButtonProps extends LimitedButtonProps {
export interface SerializablePayPalCheckoutButtonProps extends LimitedButtonProps {
shape: ButtonShape;
theme: ButtonTheme;
tagLine?: string;
tagLineStyle?: TextStyle;
}

export interface PayPalCheckoutButtonProps extends LimitedButtonProps, Omit<
SerializablePayPalCheckoutButtonProps,
'tagLineStyle'
> {
tagLineStyle?: StyleProp<TextStyle>;
}
type DefaultProps = Pick<PayPalCheckoutButtonProps, 'shape' | 'theme' | 'title' | 'tagLine'>;
Expand Down

0 comments on commit 0b2d1e6

Please sign in to comment.