Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-google-recaptcha-provider

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-google-recaptcha-provider

Google reCAPTCHA provider for react native (android & iOS) projects

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-native-google-recaptcha-provider

Google reCAPTCHA provider for react native projects

Installation

yarn add react-native-google-recaptcha-provider

Overview

react-native-google-recaptcha-provider is a library for integrating Google reCAPTCHA into React Native applications. It provides a convenient way to add and customize reCAPTCHA in your application to prevent spam and abuse.

Example

You can find a usage example here

Customization

The library provides various customization options such as specifying the size, theme, language, and action associated with the reCAPTCHA widget.

Method and Field Descriptions

GoogleRecaptchaProps

Prop NameTypeRequiredDescription
siteKeystringYesThe site key obtained from Google reCAPTCHA.
baseUrlstringYesThe base URL of the website where reCAPTCHA is being used.
onVerify(token: string) => voidYesCallback function invoked when reCAPTCHA token is successfully verified.
onExpire() => voidNoCallback function invoked when the reCAPTCHA token expires.
onError(error: any) => voidNoCallback function invoked when an error occurs during reCAPTCHA verification.
onClose() => voidNoCallback function invoked when the reCAPTCHA widget is closed without completing.
onLoad() => voidNoCallback function invoked when the WebView finishes loading the HTML content.
loadingComponentReactNodeNoA custom loading component to display while reCAPTCHA is loading.
webViewPropsOmit<WebViewProps, 'source' | 'style' | 'onMessage'>NoAdditional props to be passed to the underlying WebView component.
langstringNoThe language code to use for reCAPTCHA.
size'normal' | 'compact' | 'invisible'NoThe size of the reCAPTCHA widget. Possible values: 'normal', 'compact', 'invisible'. Default is 'normal'.
theme'light' | 'dark'NoThe theme of the reCAPTCHA widget. Possible values: 'light', 'dark'. Default is 'light'.
enterprisebooleanNoSpecifies whether to use the new reCAPTCHA Enterprise API. Default is false.
actionstringNoAn additional parameter for specifying the action name associated with the protected element.
recaptchaDomainstringNoThe domain of the reCAPTCHA service. Defaults to 'www.google.com'.
gstaticDomainstringNoThe domain of the Google static content. Defaults to 'www.gstatic.com'.
hideBadgebooleanNoSpecifies whether to hide the reCAPTCHA badge. Defaults to false.
styleStyleProp<ViewStyle>NoThe style object or stylesheet for the root container of the component.

MIT


Made with create-react-native-library

Keywords

FAQs

Package last updated on 09 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc