瀏覽代碼

Add statusBarBackgroundColor to options screen and Overlay

Guy Carmeli 6 年之前
父節點
當前提交
f82b8a1688
共有 2 個檔案被更改,包括 7 行新增1 行删除
  1. 5
    0
      playground/src/screens/CustomDialog.js
  2. 2
    1
      playground/src/screens/OptionsScreen.js

+ 5
- 0
playground/src/screens/CustomDialog.js 查看文件

@@ -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 查看文件

@@ -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',