UNPKG

@reeq/react-native-passkit

Version:

React native wrapper over google PayClient (for android) and PassKit (for iOS). Contains google and apple buttons

28 lines 1.05 kB
import React from 'react'; import type { AddPassButtonProps, AddPassResultEvent } from './types'; /** * Check if its possible to add pass on the device */ export declare const canAddPasses: () => Promise<boolean>; /** * Provide a base64 encoded pass to add it to wallet */ export declare const addPass: (base64encodedPass: string) => Promise<void>; /** * iOS only. Provide a base64 encoded pass to check if wallet contains it already */ export declare const containsPass: (base64encodedPass: string) => Promise<boolean>; /** * Android only. Provide a JWT signed pass */ export declare const addPassJWT: (passJWT: string) => Promise<void>; export declare const AddPassButton: React.FC<AddPassButtonProps>; /** * Listener add pass result status. Can send error with message */ export declare const addPassResultListener: (cb: (event: AddPassResultEvent) => void) => () => void; /** * Hook wrapper over addPassResultListener */ export declare const useAddPassResult: () => AddPassResultEvent | undefined; //# sourceMappingURL=index.d.ts.map