Browse Source

Add statusBarBackgroundColor to options screen and Overlay

Guy Carmeli 6 years ago
parent
commit
f82b8a1688
2 changed files with 7 additions and 1 deletions
  1. 5
    0
      playground/src/screens/CustomDialog.js
  2. 2
    1
      playground/src/screens/OptionsScreen.js

+ 5
- 0
playground/src/screens/CustomDialog.js View File

@@ -7,6 +7,11 @@ const { Navigation } = require('react-native-navigation');
7 7
 const testIDs = require('../testIDs');
8 8
 
9 9
 class CustomDialog extends PureComponent {
10
+  static get options() {
11
+    return {
12
+      statusBarBackgroundColor: 'green'
13
+    }
14
+  };
10 15
 
11 16
   render() {
12 17
     return (

+ 2
- 1
playground/src/screens/OptionsScreen.js View File

@@ -1,7 +1,7 @@
1 1
 const React = require('react');
2 2
 const { Component } = require('react');
3 3
 
4
-const { View, Text, Button, Platform } = require('react-native');
4
+const { View, Text, Button, Platform, StatusBar } = require('react-native');
5 5
 
6 6
 const { Navigation } = require('react-native-navigation');
7 7
 const testIDs = require('../testIDs');
@@ -16,6 +16,7 @@ const FAB = 'fab';
16 16
 class OptionsScreen extends Component {
17 17
   static get options() {
18 18
     return {
19
+      statusBarBackgroundColor: 'red',
19 20
       topBar: {
20 21
         title: {
21 22
           text: 'Static Title',