Browse Source

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

added doc for the `textZoom` property
BettyJJ 5 years ago
parent
commit
1e809932ff
1 changed files with 17 additions and 0 deletions
  1. 17
    0
      docs/Reference.md

+ 17
- 0
docs/Reference.md View File

@@ -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()`