markzhai / markzhai/react-native-preloader

小米,oppo手机退出后再登录报空,华为手机无问题

Open
#4 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
54
Forks
10
PR merge metrics
No merged PRs in 30d

Description

React: Exception in native call from JS
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.facebook.react.uimanager.ReactShadowNode.setStyleWidth(float)' on a null object reference
at com.facebook.react.uimanager.UIImplementation.updateRootNodeSize(UIImplementation.java:136)
at com.facebook.react.uimanager.UIManagerModule.updateRootNodeSize(UIManagerModule.java:195)
at com.facebook.react.uimanager.UIManagerModule.access$000(UIManagerModule.java:62)
at com.facebook.react.uimanager.UIManagerModule$1$1.run(UIManagerModule.java:178)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
at android.os.Looper.loop(Looper.java:135)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:196)
at java.lang.Thread.run(Thread.java:818)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the logout-and-login flow on Xiaomi and Oppo devices, comparing it with Huawei. Trace the failure through UIManagerModule.updateRootNodeSize and UIImplementation.updateRootNodeSize, where the reported null ReactShadowNode occurs. Done means the flow no longer raises this NullPointerException on the affected devices.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.