Cannot disable SignUp or Greetings in Authenticator Component.
See original GitHub issueDescribe 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:
- Created 4 years ago
- Reactions:1
- Comments:10 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As a workaround, you can use the
hideDefault
property on theAuthenticator
, then explicitly list your contained components. Note that you may have to add anonStateChange
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.We have added new hide sign up prop #1260. Please let us know if you have any questions.