forked from hCaptcha/react-native-hcaptcha
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
25 lines (23 loc) · 725 Bytes
/
Copy pathindex.d.ts
File metadata and controls
25 lines (23 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import React from "react"
import { HcaptchaProps } from './Hcaptcha'
type ConfirmHcaptchaProps = Omit<HcaptchaProps, 'url' | 'style'> & {
/**
* Indicates whether the passive mode is enabled; when true, the modal won't be shown at all
*/
passiveSiteKey?: boolean;
/**
* The url domain defined on your hCaptcha. You generally will not need to change this.
*/
baseUrl?: string;
}
export default class ConfirmHcaptcha extends React.Component<ConfirmHcaptchaProps> {
/**
* Shows the modal containing the challenge
*/
show: () => void;
/**
* Hides the modal containing the challenge. Do not pass any argument to trigger
* the onMessage `cancel` event
*/
hide: (source?: any) => void;
}