Kaynağa Gözat

Using zoomable on android, false by default

iou90 4 yıl önce
ebeveyn
işleme
20f4f56b1c
2 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 1
    1
      README.md
  2. 1
    0
      autoHeightWebView/index.js

+ 1
- 1
README.md Dosyayı Görüntüle

52
     // 'file:///android_asset/web/' by default on Android
52
     // 'file:///android_asset/web/' by default on Android
53
     // or uri
53
     // or uri
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>` }}
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
     zoomable={false}
56
     zoomable={false}
57
     /*
57
     /*
58
     other react-native-webview props
58
     other react-native-webview props

+ 1
- 0
autoHeightWebView/index.js Dosyayı Görüntüle

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