Skip to content

Commit

Permalink
Update initial props when DisplayMode changes in Fabric
Browse files Browse the repository at this point in the history
Summary:
This diff updates initial props when DisplayMode changes in Fabric. This method will be called during pre-rendering.

changelog: [internal] internal

Reviewed By: JoshuaGross

Differential Revision: D27607586

fbshipit-source-id: 7625943d57a786d6dfe30dd893e27704f51826d2
  • Loading branch information
mdvacca authored and facebook-github-bot committed Apr 12, 2021
1 parent 680dd36 commit e7b52d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ReactCommon/react/renderer/scheduler/SurfaceHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ void SurfaceHandler::setDisplayMode(DisplayMode displayMode) const noexcept {
return;
}

link_.uiManager->setSurfaceProps(
parameters_.surfaceId, parameters_.moduleName, parameters_.props);

applyDisplayMode(displayMode);
}
}
Expand Down

0 comments on commit e7b52d7

Please sign in to comment.