# Conditionally show sign-up link in React Native?

**URL:** <https://community.auth0.com/t/conditionally-show-sign-up-link-in-react-native/94867>\
**Category:** Get Help\
**Tags:** signup-prompt-new-experience, login-experience\
**Created:** [November 21, 2022, 9:19pm UTC](https://community.auth0.com/t/conditionally-show-sign-up-link-in-react-native/94867 "2022-11-21T21:19:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![warreno](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/warreno/32/41413_2.png) [@warreno](https://community.auth0.com/u/warreno)\
**Post date:** [November 21, 2022, 9:19pm UTC](https://community.auth0.com/t/conditionally-show-sign-up-link-in-react-native/94867/1 "2022-11-21T21:19:11Z")

</div>

I’m using WebAuth in a React Native app and I need a way to conditionally show the Sign Up link. Ideally be able to do something like: `auth0.webAuth.authorize({allowSignUp: true|false})`. It’s ok if it’s just simply hiding the UI. What would be the best way to achieve this? Thanks!

---

<div class="post-metadata">

**Author:** ![developandfix](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/developandfix/32/34674_2.png) [@developandfix](https://community.auth0.com/u/developandfix)\
**Post date:** [November 24, 2022, 2:13pm UTC](https://community.auth0.com/t/conditionally-show-sign-up-link-in-react-native/94867/2 "2022-11-24T14:13:32Z")

</div>

I’m looking for an answer to this question as well. App Review is rejecting my app because of the presence of the “sign up” link. They require implementing user deletion if you allow user registration. I’m only using sign up for existing users, and I don’t have time to implement self serve account deletion right now. So I need to have a way to allow sign in from React Native without any visible sign up link.

---

<div class="post-metadata">

**Author:** ![developandfix](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/developandfix/32/34674_2.png) [@developandfix](https://community.auth0.com/u/developandfix)\
**Post date:** [November 29, 2022, 2:30pm UTC](https://community.auth0.com/t/conditionally-show-sign-up-link-in-react-native/94867/3 "2022-11-29T14:30:18Z")

</div>

As a follow up, I found a solution to this problem. We can disable the sign up link on the login page for our mobile app by using [Universal Login Page Templates](https://auth0.com/docs/customize/universal-login-pages/universal-login-page-templates) and the following template:

```auto
<!DOCTYPE html>
<html>
  <head>
    {%- auth0:head -%}
    {% if application.name == "Your Mobile App Name Here" %}
    <style>
      .ulp-alternate-action {
        display: none;
      }
    </style>
    {% endif %}
  </head>
  <body class="_widget-auto-layout">
    {%- auth0:widget -%}
  </body>
</html>

```

This may not be a permanent solution, since it relies on a CSS class name that could change in the future. But for now it’s working and should let us get approved by Apple app review.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 13, 2022, 2:30pm UTC](https://community.auth0.com/t/conditionally-show-sign-up-link-in-react-native/94867/4 "2022-12-13T14:30:47Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
