-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Why ReactInstanceManager needs to be initialized on main thread? #786
Comments
Can you elaborate more? Specifically in your title you ask:
while in the issue body you point to |
Let's focus this question on |
Introduction
I noticed
ReactInstanceManager
methods have@ThreadConfined(UI)
and has assertions around same. Wanted to understand why do we need to initialize this on main thread?Details
https://github.com/facebook/react-native/blob/d94c4c46f27139d68d5303d0dafe106c4c685ea6/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java#L1117
Discussion points
The text was updated successfully, but these errors were encountered: