Skip to content

When and How the react-native update the shadowNode( or a view ) #15616

Description

@SinLucifer

In my code, ReactTextShadowNode will be added into PendingList when this node fails in getTypeFace() (get font family) after the FontFamily was downloaded, how could I refresh the node to make it work properly.

Actually, the node will update automatically if I want to use shadownode.markUpdate() and plz tell me why.

There might be two possibilities:

a) The ui_thread check the nodes periodically and refresh them when it finds the nodes are marked to update/dirty.

b) Something else needs to update its view and find other nodes are marked to update/dirty and refresh them.

Correct me if I am wrong.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions