Selaa lähdekoodia

Add statusBarBackgroundColor to options screen and Overlay

Guy Carmeli 6 vuotta sitten
vanhempi
commit
f82b8a1688

+ 5
- 0
playground/src/screens/CustomDialog.js Näytä tiedosto

@@ -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 Näytä tiedosto

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