UNPKG

@premieroctet/react-native-wallet

Version:

A React-Native wrapper for Apple PassKit and Google Wallet API

34 lines 1.19 kB
import { Constants } from "./RNWalletModule"; import RNWalletView from "./RNWalletView"; export declare function canAddPasses(): any; /** * @param urlOrToken The pkpass file url on iOS, the pass token on Android * @returns boolean indicating if the pass was added */ export declare function addPass(urlOrToken: string): Promise<boolean>; /** * @param signedJwt The signed JWT * @returns boolean indicating if the pass was added * * @platform android */ export declare function addPassWithSignedJwt(signedJwt: string): Promise<boolean>; /** * @param url The pkpass file url * @returns boolean indicating if the pass exists in the wallet * * @platform ios */ export declare function hasPass(url: string): Promise<boolean>; /** * On iOS, the removePass function requires the appropriate entitlement to * be able to remove the pass. See [documentation](https://developer.apple.com/documentation/passkit/pkpasslibrary/1617083-removepass#discussion) * * @param url The pkpass file url * * @platform ios */ export declare function removePass(url: string): Promise<void>; export { RNWalletView, Constants }; export * from "./RNWallet.types"; //# sourceMappingURL=index.d.ts.map