File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 3
3
using System . Collections . Generic ;
4
4
using Windows . UI . Xaml ;
5
5
using Windows . UI . Xaml . Controls ;
6
+ using Windows . UI . Xaml . Media ;
6
7
7
8
namespace ReactNative
8
9
{
@@ -32,9 +33,6 @@ public ReactPage(
32
33
_reactInstanceManager = CreateReactInstanceManager ( jsBundleFile , packages ) ;
33
34
34
35
RootView = CreateRootView ( ) ;
35
- RootView . HorizontalAlignment = HorizontalAlignment . Stretch ;
36
- RootView . VerticalAlignment = VerticalAlignment . Stretch ;
37
-
38
36
Content = RootView ;
39
37
}
40
38
@@ -51,6 +49,7 @@ public ReactRootView RootView
51
49
/// </summary>
52
50
public void OnCreate ( )
53
51
{
52
+ RootView . Background = ( Brush ) Application . Current . Resources [ "ApplicationPageBackgroundThemeBrush" ]
54
53
RootView . StartReactApplication( _reactInstanceManager , _mainComponentName ) ;
55
54
}
56
55
You can’t perform that action at this time.
0 commit comments