Browse Source

Using zoomable on android, false by default

iou90 4 years ago
parent
commit
20f4f56b1c
2 changed files with 2 additions and 1 deletions
  1. 1
    1
      README.md
  2. 1
    0
      autoHeightWebView/index.js

+ 1
- 1
README.md View File

@@ -52,7 +52,7 @@ import AutoHeightWebView from 'react-native-autoheight-webview'
52 52
     // 'file:///android_asset/web/' by default on Android
53 53
     // or uri
54 54
     source={{ html: `<p style="font-weight: 400;font-style: normal;font-size: 21px;line-height: 1.58;letter-spacing: -.003em;">Tags are great for describing the essence of your story in a single word or phrase, but stories are rarely about a single thing. <span style="background-color: transparent !important;background-image: linear-gradient(to bottom, rgba(146, 249, 190, 1), rgba(146, 249, 190, 1));">If I pen a story about moving across the country to start a new job in a car with my husband, two cats, a dog, and a tarantula, I wouldn’t only tag the piece with “moving”. I’d also use the tags “pets”, “marriage”, “career change”, and “travel tips”.</span></p>` }}
55
-    // disables zoom on ios (true by default)
55
+    // disables zoom (true by default on iOS, false by default on android)
56 56
     zoomable={false}
57 57
     /*
58 58
     other react-native-webview props

+ 1
- 0
autoHeightWebView/index.js View File

@@ -120,6 +120,7 @@ let defaultProps = {
120 120
 
121 121
 Platform.OS === 'android' &&
122 122
   Object.assign(defaultProps, {
123
+    zoomable: false,
123 124
     // if set to true may cause some layout issues (width of container will be than width of screen) on android
124 125
     scalesPageToFit: false
125 126
   });