瀏覽代碼

Update styling-the-navigator.md

Guy Carmeli 7 年之前
父節點
當前提交
d1d889d9a4
共有 1 個檔案被更改,包括 10 行新增1 行删除
  1. 10
    1
      docs/styling-the-navigator.md

+ 10
- 1
docs/styling-the-navigator.md 查看文件

@@ -20,7 +20,16 @@ export default class StyledScreen extends Component {
20 20
   }
21 21
 ```
22 22
 
23
-#### Style object format
23
+## Setting styles dynamically
24
+Use the `setStyle` method to change a screen's style dynamically.
25
+
26
+```js
27
+this.props.navigator.setStyle({
28
+  navBarBackgroundColor: 'blue'
29
+});
30
+```
31
+
32
+## Style object format
24 33
 
25 34
 ```js
26 35
 {