-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: readd default scale patch package fix
- Loading branch information
1 parent
13036e4
commit 1bd700c
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/node_modules/react-native-macos/React/UIUtils/RCTUIUtils.m b/node_modules/react-native-macos/React/UIUtils/RCTUIUtils.m | ||
index 90ce88b..b3de174 100644 | ||
--- a/node_modules/react-native-macos/React/UIUtils/RCTUIUtils.m | ||
+++ b/node_modules/react-native-macos/React/UIUtils/RCTUIUtils.m | ||
@@ -31,7 +31,7 @@ RCTDimensions RCTGetDimensions(CGFloat fontScale) | ||
NSWindow *window = RCTKeyWindow(); | ||
NSSize windowSize = window ? [window frame].size : CGSizeZero; | ||
screenSize = window ? [[window screen] frame].size : screenSize; | ||
- CGFloat scale = window ? [[window screen] backingScaleFactor] : 1.0; // Default scale to 1.0 if window is nil | ||
+ CGFloat scale = window ? [[window screen] backingScaleFactor] : 2.0; // Default scale to 1.0 if window is nil | ||
#endif // macOS] | ||
|
||
RCTDimensions result; |