Browse Source

Document proper usage of setDefaultOptions

Guy Carmeli 6 years ago
parent
commit
5dd7f849cb
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      docs/docs/styling.md

+ 2
- 0
docs/docs/styling.md View File

@@ -32,6 +32,8 @@ export default class StyledScreen extends Component {
32 32
 ## Enabling persistent styling properties
33 33
 In v2 we added `setDefaultOptions` API for styles that should be applied on all components.
34 34
 
35
+> `setDefaultOptions` Does not update options of existing component, therefore it should be called before `setRoot`
36
+
35 37
 ```js
36 38
 Navigation.setDefaultOptions({
37 39
   topBar: {