@oxyhq/services
Version:
Reusable OxyHQ module to handle authentication, user management, karma system, device-based session management and more 🚀
29 lines • 1.07 kB
TypeScript
import type React from 'react';
import { type ViewStyle, type TextStyle, type StyleProp } from 'react-native';
import type { PaymentItem, PaymentGatewayResult } from '../screens/PaymentGatewayScreen';
export interface OxyPayButtonProps {
style?: StyleProp<ViewStyle>;
textStyle?: StyleProp<TextStyle>;
text?: string;
disabled?: boolean;
amount: number | string;
currency?: string;
paymentItems?: PaymentItem[];
description?: string;
onPaymentResult?: (result: PaymentGatewayResult) => void;
/**
* Button background color. If not provided, uses variant ('white' or 'black').
*/
color?: string;
/**
* Button color variant: 'white' (default) or 'black'. Ignored if color is set.
*/
variant?: 'white' | 'black';
}
/**
* A pre-styled button for OxyPay payments that opens the Payment Gateway
* - Only black or white by default, but can be customized with the color prop.
*/
declare const OxyPayButton: React.FC<OxyPayButtonProps>;
export default OxyPayButton;
//# sourceMappingURL=OxyPayButton.d.ts.map