omnipay-savings-sdk
Version:
Omnipay Savings SDK
31 lines (30 loc) • 1.67 kB
TypeScript
import React, { ComponentProps } from 'react';
import { StyleProp, ViewStyle, Button as RNButton, TextStyle, Text as RNText, View as RNView, ImageStyle } from 'react-native';
export type TextProps = RNText['props'];
export type ViewProps = RNView['props'];
type PressableProps = {
children: React.ReactNode;
style?: ViewProps['style'];
activeOpacity?: number;
[key: string]: any;
};
export declare function CustomPressable({ children, style, activeOpacity, ...otherProps }: PressableProps): import("react/jsx-runtime").JSX.Element;
type ButtonProps = ComponentProps<typeof RNButton> & {
title: string;
isLoading?: boolean;
loaderColor?: string;
outlined?: boolean;
style?: StyleProp<ViewStyle>;
textStyle?: StyleProp<TextStyle>;
iconStyle?: StyleProp<ImageStyle>;
fontSize?: number;
prependComponent?: any;
appendComponent?: any;
fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
containerStyle?: StyleProp<ViewStyle>;
disabled?: boolean;
onPress: () => void;
};
export declare const Button: React.MemoExoticComponent<({ title, loaderColor, isLoading, outlined, style, textStyle, fontWeight, fontSize, containerStyle, prependComponent, appendComponent, disabled, onPress, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element>;
export declare const FloatButton: React.MemoExoticComponent<({ title, loaderColor, isLoading, outlined, style, textStyle, iconStyle, fontWeight, fontSize, containerStyle, prependComponent, appendComponent, disabled, onPress, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element>;
export {};