Browse Source

minor fix; update version to 0.1.1

iou90 8 years ago
parent
commit
63b07da680
3 changed files with 4 additions and 11 deletions
  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 View File

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

+ 2
- 9
demo/ios/demo/Info.plist View File

39
 	<key>NSLocationWhenInUseUsageDescription</key>
39
 	<key>NSLocationWhenInUseUsageDescription</key>
40
 	<string></string>
40
 	<string></string>
41
 	<key>NSAppTransportSecurity</key>
41
 	<key>NSAppTransportSecurity</key>
42
-	<!--See http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ -->
43
 	<dict>
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
 	</dict>
45
 	</dict>
53
 </dict>
46
 </dict>
54
 </plist>
47
 </plist>

+ 1
- 1
package.json View File

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