ソースを参照

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