Skip to content

Commit 99ece27

Browse files
sherginfacebook-github-bot
authored andcommitted
Fabric: Setting up correct pointScaleFactor in Binding::startSurface
Summary: Previously, we didn't provide any LayoutContext to the very first commit (aka startSurface); apparently it causes problems. Reviewed By: mdvacca Differential Revision: D15891472 fbshipit-source-id: b2a785bdad5764eb97b41f5bf5679807107bd8a0
1 parent e6f28bb commit 99ece27

File tree

1 file changed

+3
-1
lines changed
  • ReactAndroid/src/main/java/com/facebook/react/fabric/jni

1 file changed

+3
-1
lines changed

ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ void Binding::startSurface(
7373
return;
7474
}
7575

76+
LayoutContext context;
77+
context.pointScaleFactor = pointScaleFactor_;
7678
scheduler->startSurface(
77-
surfaceId, moduleName->toStdString(), initialProps->consume());
79+
surfaceId, moduleName->toStdString(), initialProps->consume(), {}, context);
7880
}
7981

8082
void Binding::startSurfaceWithConstraints(

0 commit comments

Comments
 (0)