question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot disable SignUp or Greetings in Authenticator Component.

See original GitHub issue

Describe the bug I am using an Authenticator Component in aws-amplify-react-native but cannot disable the SignUp component using the usual methods. It shows up every time.

To Reproduce Steps to reproduce the behavior:

class AuthScreen extends React.Component {
  render() {
    return (
      <View style={Style.container}>
        <View style={Style.logoContainer}>
          <Image style={Style.logo} source={Images.logo} resizeMode={'contain'} />
        </View>
        <Authenticator hide={[Greetings, SignUp]} theme={rprTheme} />
      </View>
    )
  }
}

Expected behavior Expecting to have the SignUp component hidden.

Screenshots It just shows up as you would expect the standard component to show up with all of the usual components.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tripplilleycommented, Mar 22, 2021

As a workaround, you can use the hideDefault property on the Authenticator, then explicitly list your contained components. Note that you may have to add an onStateChange handler to skip past states you’ve hidden (e.g., verifyContact) or you’ll end up with a blank UI when you hit that state.

<Authenticator hideDefault={true}>
  <SignIn>
  <SignOut>
  <Greetings>
</Authenticator>
0reactions
Milan-Shahcommented, Apr 2, 2022

We have added new hide sign up prop #1260. Please let us know if you have any questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot disable SignUp or Greetings in Authenticator ... - GitHub
I am using an Authenticator Component in aws-amplify-react-native but cannot disable the SignUp component using the usual methods. It shows up ...
Read more >
Authenticator - React Native - AWS Amplify Docs
withAuthenticator component renders your App component after a successful user signed in, and it prevents non-sign-in users to interact with your app.
Read more >
Is it possible to customize default Sign Up, Sign In screens of ...
Currently, in my project, I am customizing SignUp, SignIn and ConfigrmSignUp components as shown below. This is the suggested way of creating ...
Read more >
Plan a passwordless authentication deployment in Azure ...
As part of this deployment plan, we recommend that passwordless authentication be enabled for all privileged accounts.
Read more >
How do I remove the ability for customers to sign up for our ...
Thanks for reaching out! This feature "Anybody can submit tickets" cannot be separated by brands. Users are managed over the full Zendesk ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found