You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,8 +127,10 @@ Otherwise, you should pass in the preferred device locale, e.g. fetched from `ge
127
127
128
128
129
129
### Notes
130
+
130
131
- The UI defaults to the "invisible" mode of the JS SDK, i.e. no checkbox is displayed.
131
-
- You can `import Hcaptcha from '@hcaptcha/react-native-hcaptcha/Hcaptcha';` to customize the UI yourself.
132
+
- You can `import Hcaptcha from '@hcaptcha/react-native-hcaptcha/Hcaptcha';` to customize the UI yourself.
133
+
- hCaptcha loading is restricted to a 15-second timeout; an `error` will be sent via `onMessage` if it fails to load due to network issues.
132
134
133
135
## Properties
134
136
@@ -139,6 +141,7 @@ Otherwise, you should pass in the preferred device locale, e.g. fetched from `ge
139
141
| onMessage | Function (see [here](https://github.com/react-native-webview/react-native-webview/blob/master/src/WebViewTypes.ts#L299)) | The callback function that runs after receiving a response, error, or when user cancels. |
140
142
| languageCode | string | Default language for hCaptcha; overrides phone defaults. A complete list of supported languages and their codes can be found [here](https://docs.hcaptcha.com/languages/)|
141
143
| showLoading | boolean | Whether to show a loading indicator while the hCaptcha web content loads |
144
+
| closableLoading | boolean | Allow user to cancel hcaptcha during loading by touch loader overlay |
142
145
| loadingIndicatorColor | string | Color of the ActivityIndicator |
143
146
| backgroundColor | string | The background color code that will be applied to the main HTML element |
144
147
| theme | string\|object | The theme can be 'light', 'dark', 'contrast' or a custom theme object (see Enterprise docs) |
@@ -154,7 +157,7 @@ Otherwise, you should pass in the preferred device locale, e.g. fetched from `ge
154
157
| style _(inline component only)_| ViewStyle (see [here](https://reactnative.dev/docs/view-style-props)) | The webview style |
155
158
| baseUrl _(modal component only)_| string | The url domain defined on your hCaptcha. You generally will not need to change this. |
156
159
| passiveSiteKey _(modal component only)_| boolean | Indicates whether the passive mode is enabled; when true, the modal won't be shown at all |
157
-
| hasBackdrop _(modal component only)_| boolean | Defines if the modal backdrop is shown (true by default) |
160
+
| hasBackdrop _(modal component only)_| boolean | Defines if the modal backdrop is shown (true by default). If `hasBackdrop=false`, `backgroundColor` will apply only after the hCaptcha visual challenge is presented.|
158
161
| orientation | string | This specifies the "orientation" of the challenge. It can be `portrait`, `landscape`. Default: `portrait`|
0 commit comments