Bläddra i källkod

minor fix; update version to 0.1.1

iou90 8 år sedan
förälder
incheckning
63b07da680
3 ändrade filer med 4 tillägg och 11 borttagningar
  1. 1
    1
      autoHeightWebView/index.android.js
  2. 2
    9
      demo/ios/demo/Info.plist
  3. 1
    1
      package.json

+ 1
- 1
autoHeightWebView/index.android.js Visa fil

@@ -206,7 +206,7 @@ const IsBelowKitKat = Platform.Version < 19;
206 206
 const BaseScript =
207 207
     IsBelowKitKat ?
208 208
         `
209
-    (function () {
209
+    ; (function () {
210 210
         AutoHeightWebView.onMessage = function (message) {
211 211
             AutoHeightWebView.send(String(document.body.offsetHeight));
212 212
         };

+ 2
- 9
demo/ios/demo/Info.plist Visa fil

@@ -39,16 +39,9 @@
39 39
 	<key>NSLocationWhenInUseUsageDescription</key>
40 40
 	<string></string>
41 41
 	<key>NSAppTransportSecurity</key>
42
-	<!--See http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ -->
43 42
 	<dict>
44
-		<key>NSExceptionDomains</key>
45
-		<dict>
46
-			<key>localhost</key>
47
-			<dict>
48
-				<key>NSExceptionAllowsInsecureHTTPLoads</key>
49
-				<true/>
50
-			</dict>
51
-		</dict>
43
+		<key>NSAllowsArbitraryLoads</key>
44
+		<true/>
52 45
 	</dict>
53 46
 </dict>
54 47
 </plist>

+ 1
- 1
package.json Visa fil

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "react-native-autoheight-webview",
3
-  "version": "0.1.0",
3
+  "version": "0.1.1",
4 4
   "description": "An auto height webview for React Native",
5 5
   "main": "autoHeightWebView",
6 6
   "files": [