Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Phecda
/
NGPlay
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Phecda
2020-04-10 19:37:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8b3d838e01b38e2af1bd96d44c2b9a775ae1794e
8b3d838e
1 parent
eb84b3ca
refactor: use system background color in rootView
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
ios/NGPlay/AppDelegate.m
ios/NGPlay/AppDelegate.m
View file @
8b3d838
...
...
@@ -43,8 +43,12 @@ static void InitializeFlipper(UIApplication *application) {
RCTRootView
*
rootView
=
[[
RCTRootView
alloc
]
initWithBridge
:
bridge
moduleName
:
@"NGPlay"
initialProperties:
nil
];
rootView
.
backgroundColor
=
[[
UIColor
alloc
]
initWithRed
:
1
.
0
f
green
:
1
.
0
f
blue
:
1
.
0
f
alpha
:
1
];
if
(
@available
(
iOS
13
.
0
,
*
))
{
rootView
.
backgroundColor
=
[
UIColor
systemBackgroundColor
];
}
else
{
rootView
.
backgroundColor
=
[[
UIColor
alloc
]
initWithRed
:
1
.
0
f
green
:
1
.
0
f
blue
:
1
.
0
f
alpha
:
1
];
}
self
.
window
=
[[
UIWindow
alloc
]
initWithFrame
:[
UIScreen
mainScreen
].
bounds
];
UIViewController
*
rootViewController
=
[
UIViewController
new
];
...
...
Please
register
or
login
to post a comment