Browse Source

Add statusBarBackgroundColor to options screen and Overlay

Guy Carmeli 6 years ago
parent
commit
f82b8a1688

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

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

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

1
 const React = require('react');
1
 const React = require('react');
2
 const { Component } = require('react');
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
 const { Navigation } = require('react-native-navigation');
6
 const { Navigation } = require('react-native-navigation');
7
 const testIDs = require('../testIDs');
7
 const testIDs = require('../testIDs');
16
 class OptionsScreen extends Component {
16
 class OptionsScreen extends Component {
17
   static get options() {
17
   static get options() {
18
     return {
18
     return {
19
+      statusBarBackgroundColor: 'red',
19
       topBar: {
20
       topBar: {
20
         title: {
21
         title: {
21
           text: 'Static Title',
22
           text: 'Static Title',