瀏覽代碼

Document proper usage of setDefaultOptions

Guy Carmeli 6 年之前
父節點
當前提交
5dd7f849cb
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      docs/docs/styling.md

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

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