Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How To Work with Typescript #22

Open
harrymuliawan03 opened this issue May 13, 2024 · 1 comment
Open

How To Work with Typescript #22

harrymuliawan03 opened this issue May 13, 2024 · 1 comment

Comments

@harrymuliawan03
Copy link

No description provided.

@rahimlisarkhan
Copy link

1 . // In src/types/react-native-make-payment.d.ts
declare module '@google/react-native-make-payment' {
export function canMakePayment(): Promise;
export function makePaymentRequest(details: any): Promise;
export function PaymentRequest(): any;
export function GooglePayButton(props: any): any;
export function GooglePayButtonConstants(props: any): any;
}

2 . "include": ["src/types", "app/**/*"],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants