New version of React Native + withAuthenticator == funky background
See original GitHub issueDescribe the bug
The new version of React Native renders a black background when using the withAuthenticator
HOC.
To Reproduce Steps to reproduce the behavior:
- Create new React Native project (0.58+).
- Install Amplify + Amplify React Native libraries
- Add amplify & auth category
- Use the withAuthenticator HOC
Expected behavior White background & normal UI shows up
Screenshots
Desktop (please complete the following information):
- OS: iOS
- Browser: chrome
- Version:
{
"name": "randomrn",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"aws-amplify": "^1.1.19",
"aws-amplify-react-native": "^2.1.7",
"react": "16.6.3",
"react-native": "0.58.2"
},
"devDependencies": {
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "24.0.0",
"jest": "24.0.0",
"metro-react-native-babel-preset": "0.51.1",
"react-test-renderer": "16.6.3"
},
"jest": {
"preset": "react-native"
}
}
Smartphone (please complete the following information):
- Device: iPhone X
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22] 10.1
Additional context I tested this with older versions of React Native, as late as 0.57.8, & it worked fine.
You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = ‘DEBUG’; in your app.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Authenticator - React Native - AWS Amplify Docs
A new version of the Amplify Authenticator is available. Visit https://ui.docs.amplify.aws to get started. A simple way to add authentication flows into your ......
Read more >Building a Startup with React Native and AWS Amplify (part 3)
Let's continue working on the React Native mobile app that I am building for the #notJustStartup Challenge. Today we will start working on ......
Read more >Headless JS - React Native
Headless JS is a way to run tasks in JavaScript while your app is in the background. It can be used, for example,...
Read more >Amplify UI's new Authenticator component makes it easy to ...
AWS Amplify UI recently announced a new version of the ... Update your App.js to use the withAuthenticator Higher-order component (HOC).
Read more >aws amplify npm
Pre-requisites: Install the latest version of Flutter. ... Start using aws-amplify-react-native in your project by running `npm i aws-amplify-react-native`.
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 FreeTop 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
Top GitHub Comments
A workaround for react-native >= 58
If anyone wants a workaround for now, you can initialize a pre 0.58.0 version of React Native until this gets resolved:
react-native init --version 0.57.8 MyProject