GithubHelp home page GithubHelp logo

Comments (6)

pierroo avatar pierroo commented on June 14, 2024 1

Thank you for your answer.
So I'd say this other plugin is not really mentioning that and it could be harmful to some other developers.

I will move on to using yours, that actually seems to be working much better, thank you!

from react-native-recaptcha-that-works.

douglasjunior avatar douglasjunior commented on June 14, 2024 1

Added hideBadge prop.

https://github.com/douglasjunior/react-native-recaptcha-that-works/releases/tag/1.3.1

from react-native-recaptcha-that-works.

douglasjunior avatar douglasjunior commented on June 14, 2024

This is how reCaptcha invisible should works.

https://developers.google.com/recaptcha/docs/faq#id-like-to-hide-the-recaptcha-badge.-what-is-allowed

from react-native-recaptcha-that-works.

faqini avatar faqini commented on June 14, 2024

🤔 Nope...

You are allowed to hide the badge as long as you include the reCAPTCHA branding visibly in the user flow. Please include the following text: This site is protected by reCAPTCHA and the Google...

You can use webViewProps to inject css an hide the mentioned css class.

const CSS = '.grecaptcha-badge { visibility: hidden; }';

const INJECTED_JS = `
  (function() {
    const style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = '${CSS}';
    document.head.appendChild(style);
  })();
  true;`;
  
<Recaptcha ... webViewProps={{ injectedJavaScript: INJECTED_JS }} />

from react-native-recaptcha-that-works.

pierroo avatar pierroo commented on June 14, 2024

Weird, how come this other plugin doesn't show the badge?
https://www.npmjs.com/package/@haskkor/react-native-recaptchav3

=> are they actually playing against google ToS for recaptcha?

from react-native-recaptcha-that-works.

douglasjunior avatar douglasjunior commented on June 14, 2024

You are allowed to hide the badge as long as you include the reCAPTCHA branding visibly in the user flow. Please include the following text:

 This site is protected by reCAPTCHA and the Google
    <a href="https://policies.google.com/privacy">Privacy Policy</a> and
    <a href="https://policies.google.com/terms">Terms of Service</a> apply.

From: https://developers.google.com/recaptcha/docs/faq#id-like-to-hide-the-recaptcha-badge.-what-is-allowed

I think we can add prop hideBadge=true/false and it's up to you to follow the rules.

from react-native-recaptcha-that-works.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.