Explorar el Código

Update styling-the-navigator.md

Guy Carmeli hace 8 años
padre
commit
d1d889d9a4
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. 10
    1
      docs/styling-the-navigator.md

+ 10
- 1
docs/styling-the-navigator.md Ver fichero

@@ -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
 {