ReactContext#getCurrentActivity() is null in createViewInstance()
See original GitHub issueSee discussion on #8661 for more info, we should never create views before we have an attached activity. This means we can either move the call to startApplication
to onResume
or set the current activity in onCreate
.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:7 (4 by maintainers)
Top Results From Across the Web
No results found
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
Do I have to wait for 0.33 or is there another way to get an Activity in a view?
Fixed in 96e4121.