UNPKG

@questlabs/react-native-sdk

Version:
54 lines (48 loc) 1.17 kB
import { TextStyle, ViewStyle } from "react-native"; export type Props = { campaignVariationId?:string; questId?:string; questUserId?:string; userToken?:string; actions: ICriteria[]; loading?: boolean; title?: string; description?: string; onError?: ( event: "VERIFY_ACTION" | "CLAIM_ACTION" | "INVAILD_LINK", message: string, data?: {} ) => void; styleConfig?: styleConfig; showFooter?: boolean; maxRating?: number; currentRating?: number; handleClose?: () => void; getPressedRating?: (rating: number) => void; }; export interface ICriteria { actionId: string; actionType: string; title: string; ratingType?: string; leftRatingText?: string; rightRatingText?: string; centerRatingText?: string; answer: (string | number); } export interface styleConfig { Form?: ViewStyle; Heading?: TextStyle; Description?: TextStyle; Footer?: { FooterStyle?: ViewStyle; FooterText?: TextStyle; FooterIcon?: TextStyle; }; Card?: { title?: TextStyle; description?: TextStyle; stepText?: TextStyle; }; TopBar?: ViewStyle; }