Skip to content

Commit a7dcd7b

Browse files
authored
Merge pull request #900 from jpudysz/feature/root-background-color
fix: root view background color setup
2 parents b758392 + 451198b commit a7dcd7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/specs/UnistylesRuntime/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ const HybridUnistylesRuntime = NitroModules
4444

4545
HybridUnistylesRuntime.statusBar = HybridUnistylesRuntime.createHybridStatusBar()
4646
HybridUnistylesRuntime.navigationBar = HybridUnistylesRuntime.createHybridNavigationBar()
47+
HybridUnistylesRuntime._setRootViewBackgroundColor = HybridUnistylesRuntime.setRootViewBackgroundColor
4748

4849
HybridUnistylesRuntime.setRootViewBackgroundColor = (color?: string) => {
4950
const parsedColor = processColor(color) ?? 0
5051

51-
HybridUnistylesRuntime._setRootViewBackgroundColor(parsedColor as number)
52+
HybridUnistylesRuntime._setRootViewBackgroundColor(parsedColor)
5253
}
5354

5455
if (isIOS) {

0 commit comments

Comments
 (0)