瀏覽代碼

Document proper usage of setDefaultOptions

Guy Carmeli 7 年之前
父節點
當前提交
5dd7f849cb
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      docs/docs/styling.md

+ 2
- 0
docs/docs/styling.md 查看文件

32
 ## Enabling persistent styling properties
32
 ## Enabling persistent styling properties
33
 In v2 we added `setDefaultOptions` API for styles that should be applied on all components.
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
 ```js
37
 ```js
36
 Navigation.setDefaultOptions({
38
 Navigation.setDefaultOptions({
37
   topBar: {
39
   topBar: {