浏览代码

chore(types): Update Reference.md (#687)

added doc for the `textZoom` property
BettyJJ 5 年前
父节点
当前提交
905677a24a
共有 1 个文件被更改,包括 17 次插入0 次删除
  1. 17
    0
      docs/Reference.md

+ 17
- 0
docs/Reference.md 查看文件

@@ -54,6 +54,7 @@ This document lays out the current public properties and methods for the React N
54 54
 - [`pagingEnabled`](Reference.md#pagingEnabled)
55 55
 - [`allowsLinkPreview`](Reference.md#allowsLinkPreview)
56 56
 - [`sharedCookiesEnabled`](Reference.md#sharedCookiesEnabled)
57
+- [`textZoom`](Reference.md#textZoom)
57 58
 
58 59
 ## Methods Index
59 60
 
@@ -894,6 +895,22 @@ Set `true` if shared cookies from `[NSHTTPCookieStorage sharedHTTPCookieStorage]
894 895
 | ------- | -------- | -------- |
895 896
 | boolean | No       | iOS      |
896 897
 
898
+---
899
+
900
+### `textZoom`
901
+
902
+If the user has set a custom font size in the Android system, an undesirable scale of the site interface in WebView occurs.
903
+
904
+When setting the standard textZoom (100) parameter size, this undesirable effect disappears.
905
+
906
+| Type   | Required | Platform |
907
+| ------ | -------- | -------- |
908
+| number | No       | Android  |
909
+
910
+Example:
911
+
912
+`<WebView textZoom={100} />`
913
+
897 914
 ## Methods
898 915
 
899 916
 ### `extraNativeComponentConfig()`