From cddd176a270d828d47e8bd1b50096a4bcfe97de7 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com> Date: Wed, 26 May 2021 20:41:49 +0700 Subject: [PATCH] [notch offset] ok, we should take left insets only --- Natives/SurfaceViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Natives/SurfaceViewController.m b/Natives/SurfaceViewController.m index 3a8b234b..14443f62 100644 --- a/Natives/SurfaceViewController.m +++ b/Natives/SurfaceViewController.m @@ -83,7 +83,7 @@ int notchOffset; savedHeight = roundf(height * screenScale); // get both left and right for just in case orientation is changed - notchOffset = insets.left + insets.right; + notchOffset = insets.left; width = width - notchOffset * 2; touchView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, width, height)];