whatsapp-auth
Version:
Module for authenticating applications via WhatsApp
32 lines (26 loc) • 742 B
text/typescript
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
export type OnLoadEventPayload = {
url: string;
};
export type WhatsappAuthModuleEvents = {
onChange: (params: ChangeEventPayload) => void;
};
export type ChangeEventPayload = {
value: string;
};
export type WhatsappAuthViewProps = {
url: string;
onLoad: (event: { nativeEvent: OnLoadEventPayload }) => void;
style?: StyleProp<ViewStyle>;
};
export type WhatsappButtonProps = {
callBackScreen: () => void;
whatsappNumberCore?: string;
defaultMessageLogin?: string;
buttonText?: string;
buttonStyle?: StyleProp<ViewStyle>;
buttonTextStyle?: StyleProp<TextStyle>;
iconStyle?: StyleProp<ViewStyle>;
iconColor?: string;
iconSize?: number;
};