Bläddra i källkod

update version to 0.0.14; add support for android version below kitkat; more reliable height update when changing source (android); update example;

iou90 7 år sedan
förälder
incheckning
6febf27d30
55 ändrade filer med 487 tillägg och 145 borttagningar
  1. Binär
      android/gradle/wrapper/gradle-wrapper.jar
  2. 6
    0
      android/gradle/wrapper/gradle-wrapper.properties
  3. 160
    0
      android/gradlew
  4. 0
    0
      android/gradlew.bat
  5. 41
    4
      android/src/main/java/com/dscj/autoheightwebview/AutoHeightWebViewManager.java
  6. 1
    5
      android/src/main/java/com/dscj/autoheightwebview/AutoHeightWebViewPackage.java
  7. 29
    0
      android/src/main/java/com/dscj/autoheightwebview/JavascriptBridge.java
  8. 61
    31
      autoHeightWebView/index.android.js
  9. 0
    3
      examples/autoHeightWebViewExplorer/android/app/src/main/res/values/strings.xml
  10. 0
    9
      examples/autoHeightWebViewExplorer/index.android.js
  11. 0
    9
      examples/autoHeightWebViewExplorer/index.ios.js
  12. 0
    0
      examples/explorer/.babelrc
  13. 0
    0
      examples/explorer/.buckconfig
  14. 0
    0
      examples/explorer/.flowconfig
  15. 0
    0
      examples/explorer/.gitattributes
  16. 0
    0
      examples/explorer/.gitignore
  17. 0
    0
      examples/explorer/.watchmanconfig
  18. 0
    0
      examples/explorer/__tests__/index.android.js
  19. 0
    0
      examples/explorer/__tests__/index.ios.js
  20. 2
    2
      examples/explorer/android/app/BUCK
  21. 1
    1
      examples/explorer/android/app/build.gradle
  22. 0
    0
      examples/explorer/android/app/proguard-rules.pro
  23. 1
    1
      examples/explorer/android/app/src/main/AndroidManifest.xml
  24. 2
    2
      examples/explorer/android/app/src/main/java/com/explorer/MainActivity.java
  25. 1
    1
      examples/explorer/android/app/src/main/java/com/explorer/MainApplication.java
  26. 0
    0
      examples/explorer/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
  27. 0
    0
      examples/explorer/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
  28. 0
    0
      examples/explorer/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  29. 0
    0
      examples/explorer/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  30. 3
    0
      examples/explorer/android/app/src/main/res/values/strings.xml
  31. 0
    0
      examples/explorer/android/app/src/main/res/values/styles.xml
  32. 0
    0
      examples/explorer/android/build.gradle
  33. 0
    0
      examples/explorer/android/gradle.properties
  34. 0
    0
      examples/explorer/android/gradle/wrapper/gradle-wrapper.jar
  35. 0
    0
      examples/explorer/android/gradle/wrapper/gradle-wrapper.properties
  36. 0
    0
      examples/explorer/android/gradlew
  37. 90
    0
      examples/explorer/android/gradlew.bat
  38. 0
    0
      examples/explorer/android/keystores/BUCK
  39. 0
    0
      examples/explorer/android/keystores/debug.keystore.properties
  40. 1
    1
      examples/explorer/android/settings.gradle
  41. 1
    7
      examples/explorer/explorer.js
  42. 9
    0
      examples/explorer/index.android.js
  43. 9
    0
      examples/explorer/index.ios.js
  44. 45
    45
      examples/explorer/ios/explorer.xcodeproj/project.pbxproj
  45. 18
    18
      examples/explorer/ios/explorer.xcodeproj/xcshareddata/xcschemes/explorer.xcscheme
  46. 0
    0
      examples/explorer/ios/explorer/AppDelegate.h
  47. 1
    1
      examples/explorer/ios/explorer/AppDelegate.m
  48. 1
    1
      examples/explorer/ios/explorer/Base.lproj/LaunchScreen.xib
  49. 0
    0
      examples/explorer/ios/explorer/Images.xcassets/AppIcon.appiconset/Contents.json
  50. 0
    0
      examples/explorer/ios/explorer/Info.plist
  51. 0
    0
      examples/explorer/ios/explorer/main.m
  52. 0
    0
      examples/explorer/ios/explorerTests/Info.plist
  53. 2
    2
      examples/explorer/ios/explorerTests/explorerTests.m
  54. 1
    1
      examples/explorer/package.json
  55. 1
    1
      package.json

Binär
android/gradle/wrapper/gradle-wrapper.jar Visa fil


+ 6
- 0
android/gradle/wrapper/gradle-wrapper.properties Visa fil

1
+#Mon Dec 28 10:00:20 PST 2015
2
+distributionBase=GRADLE_USER_HOME
3
+distributionPath=wrapper/dists
4
+zipStoreBase=GRADLE_USER_HOME
5
+zipStorePath=wrapper/dists
6
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip

+ 160
- 0
android/gradlew Visa fil

1
+#!/usr/bin/env bash
2
+
3
+##############################################################################
4
+##
5
+##  Gradle start up script for UN*X
6
+##
7
+##############################################################################
8
+
9
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10
+DEFAULT_JVM_OPTS=""
11
+
12
+APP_NAME="Gradle"
13
+APP_BASE_NAME=`basename "$0"`
14
+
15
+# Use the maximum available, or set MAX_FD != -1 to use that value.
16
+MAX_FD="maximum"
17
+
18
+warn ( ) {
19
+    echo "$*"
20
+}
21
+
22
+die ( ) {
23
+    echo
24
+    echo "$*"
25
+    echo
26
+    exit 1
27
+}
28
+
29
+# OS specific support (must be 'true' or 'false').
30
+cygwin=false
31
+msys=false
32
+darwin=false
33
+case "`uname`" in
34
+  CYGWIN* )
35
+    cygwin=true
36
+    ;;
37
+  Darwin* )
38
+    darwin=true
39
+    ;;
40
+  MINGW* )
41
+    msys=true
42
+    ;;
43
+esac
44
+
45
+# Attempt to set APP_HOME
46
+# Resolve links: $0 may be a link
47
+PRG="$0"
48
+# Need this for relative symlinks.
49
+while [ -h "$PRG" ] ; do
50
+    ls=`ls -ld "$PRG"`
51
+    link=`expr "$ls" : '.*-> \(.*\)$'`
52
+    if expr "$link" : '/.*' > /dev/null; then
53
+        PRG="$link"
54
+    else
55
+        PRG=`dirname "$PRG"`"/$link"
56
+    fi
57
+done
58
+SAVED="`pwd`"
59
+cd "`dirname \"$PRG\"`/" >/dev/null
60
+APP_HOME="`pwd -P`"
61
+cd "$SAVED" >/dev/null
62
+
63
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
64
+
65
+# Determine the Java command to use to start the JVM.
66
+if [ -n "$JAVA_HOME" ] ; then
67
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
68
+        # IBM's JDK on AIX uses strange locations for the executables
69
+        JAVACMD="$JAVA_HOME/jre/sh/java"
70
+    else
71
+        JAVACMD="$JAVA_HOME/bin/java"
72
+    fi
73
+    if [ ! -x "$JAVACMD" ] ; then
74
+        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
75
+
76
+Please set the JAVA_HOME variable in your environment to match the
77
+location of your Java installation."
78
+    fi
79
+else
80
+    JAVACMD="java"
81
+    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
82
+
83
+Please set the JAVA_HOME variable in your environment to match the
84
+location of your Java installation."
85
+fi
86
+
87
+# Increase the maximum file descriptors if we can.
88
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
89
+    MAX_FD_LIMIT=`ulimit -H -n`
90
+    if [ $? -eq 0 ] ; then
91
+        if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
92
+            MAX_FD="$MAX_FD_LIMIT"
93
+        fi
94
+        ulimit -n $MAX_FD
95
+        if [ $? -ne 0 ] ; then
96
+            warn "Could not set maximum file descriptor limit: $MAX_FD"
97
+        fi
98
+    else
99
+        warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
100
+    fi
101
+fi
102
+
103
+# For Darwin, add options to specify how the application appears in the dock
104
+if $darwin; then
105
+    GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
106
+fi
107
+
108
+# For Cygwin, switch paths to Windows format before running java
109
+if $cygwin ; then
110
+    APP_HOME=`cygpath --path --mixed "$APP_HOME"`
111
+    CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
112
+    JAVACMD=`cygpath --unix "$JAVACMD"`
113
+
114
+    # We build the pattern for arguments to be converted via cygpath
115
+    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
116
+    SEP=""
117
+    for dir in $ROOTDIRSRAW ; do
118
+        ROOTDIRS="$ROOTDIRS$SEP$dir"
119
+        SEP="|"
120
+    done
121
+    OURCYGPATTERN="(^($ROOTDIRS))"
122
+    # Add a user-defined pattern to the cygpath arguments
123
+    if [ "$GRADLE_CYGPATTERN" != "" ] ; then
124
+        OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
125
+    fi
126
+    # Now convert the arguments - kludge to limit ourselves to /bin/sh
127
+    i=0
128
+    for arg in "$@" ; do
129
+        CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
130
+        CHECK2=`echo "$arg"|egrep -c "^-"`                                 ### Determine if an option
131
+
132
+        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition
133
+            eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
134
+        else
135
+            eval `echo args$i`="\"$arg\""
136
+        fi
137
+        i=$((i+1))
138
+    done
139
+    case $i in
140
+        (0) set -- ;;
141
+        (1) set -- "$args0" ;;
142
+        (2) set -- "$args0" "$args1" ;;
143
+        (3) set -- "$args0" "$args1" "$args2" ;;
144
+        (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
145
+        (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
146
+        (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
147
+        (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
148
+        (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
149
+        (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
150
+    esac
151
+fi
152
+
153
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
154
+function splitJvmOpts() {
155
+    JVM_OPTS=("$@")
156
+}
157
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
158
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
159
+
160
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"

examples/autoHeightWebViewExplorer/android/gradlew.bat → android/gradlew.bat Visa fil


+ 41
- 4
android/src/main/java/com/dscj/autoheightwebview/AutoHeightWebViewManager.java Visa fil

2
 
2
 
3
 import android.webkit.WebView;
3
 import android.webkit.WebView;
4
 
4
 
5
+import com.facebook.react.bridge.ReadableArray;
6
+import com.facebook.react.uimanager.annotations.ReactProp;
5
 import com.facebook.react.uimanager.ThemedReactContext;
7
 import com.facebook.react.uimanager.ThemedReactContext;
6
 import com.facebook.react.views.webview.ReactWebViewManager;
8
 import com.facebook.react.views.webview.ReactWebViewManager;
7
 
9
 
8
-/**
9
- * Created by iou90 on 09/01/2017.
10
- */
10
+import java.util.Map;
11
+import javax.annotation.Nullable;
11
 
12
 
12
 public class AutoHeightWebViewManager extends ReactWebViewManager {
13
 public class AutoHeightWebViewManager extends ReactWebViewManager {
13
     private static final String REACT_CLASS = "RCTAutoHeightWebView";
14
     private static final String REACT_CLASS = "RCTAutoHeightWebView";
14
 
15
 
16
+    public static final int COMMAND_SEND_TO_WEBVIEW = 101;
17
+
15
     @Override
18
     @Override
16
     public String getName() {
19
     public String getName() {
17
         return REACT_CLASS;
20
         return REACT_CLASS;
18
     }
21
     }
19
 
22
 
23
+    @Override
24
+    public
25
+    @Nullable
26
+    Map<String, Integer> getCommandsMap() {
27
+        Map<String, Integer> commandsMap = super.getCommandsMap();
28
+        commandsMap.put("sendToWebView", COMMAND_SEND_TO_WEBVIEW);
29
+
30
+        return commandsMap;
31
+    }
32
+
20
     @Override
33
     @Override
21
     protected WebView createViewInstance(ThemedReactContext reactContext) {
34
     protected WebView createViewInstance(ThemedReactContext reactContext) {
22
         WebView webview = super.createViewInstance(reactContext);
35
         WebView webview = super.createViewInstance(reactContext);
23
         webview.setVerticalScrollBarEnabled(false);
36
         webview.setVerticalScrollBarEnabled(false);
24
         webview.setHorizontalScrollBarEnabled(false);
37
         webview.setHorizontalScrollBarEnabled(false);
38
+        webview.addJavascriptInterface(new JavascriptBridge(webview), "AutoHeightWebView");
39
+
25
         return webview;
40
         return webview;
26
     }
41
     }
27
-}
42
+
43
+    @Override
44
+    public void receiveCommand(WebView webView, int commandId, @Nullable ReadableArray args) {
45
+        super.receiveCommand(webView, commandId, args);
46
+
47
+        switch (commandId) {
48
+            case COMMAND_SEND_TO_WEBVIEW:
49
+                sendToWebView(webView, args.getString(0));
50
+                break;
51
+            default:
52
+                break;
53
+        }
54
+    }
55
+
56
+    private void sendToWebView(WebView webView, String message) {
57
+        String script = "AutoHeightWebView.onMessage('" + message + "');";
58
+        if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) {
59
+            webView.evaluateJavascript(script, null);
60
+        } else {
61
+            webView.loadUrl("javascript:" + script);
62
+        }
63
+    }
64
+}

+ 1
- 5
android/src/main/java/com/dscj/autoheightwebview/AutoHeightWebViewPackage.java Visa fil

10
 import java.util.Arrays;
10
 import java.util.Arrays;
11
 import java.util.List;
11
 import java.util.List;
12
 
12
 
13
-/**
14
- * Created by iou90 on 09/01/2017.
15
- */
16
-
17
 public class AutoHeightWebViewPackage implements ReactPackage {
13
 public class AutoHeightWebViewPackage implements ReactPackage {
18
     @Override
14
     @Override
19
     public List<NativeModule> createNativeModules(ReactApplicationContext reactApplicationContext) {
15
     public List<NativeModule> createNativeModules(ReactApplicationContext reactApplicationContext) {
31
     public List<Class<? extends JavaScriptModule>> createJSModules() {
27
     public List<Class<? extends JavaScriptModule>> createJSModules() {
32
         return Arrays.asList();
28
         return Arrays.asList();
33
     }
29
     }
34
-}
30
+}

+ 29
- 0
android/src/main/java/com/dscj/autoheightwebview/JavascriptBridge.java Visa fil

1
+package com.dscj.autoheightwebview;
2
+
3
+import android.webkit.JavascriptInterface;
4
+import android.webkit.WebView;
5
+
6
+import com.facebook.react.bridge.Arguments;
7
+import com.facebook.react.bridge.ReactContext;
8
+import com.facebook.react.bridge.WritableMap;
9
+import com.facebook.react.modules.core.DeviceEventManagerModule;
10
+import com.facebook.react.uimanager.events.RCTEventEmitter;
11
+
12
+class JavascriptBridge {
13
+    private WebView webView;
14
+
15
+    public JavascriptBridge(WebView webView) {
16
+        this.webView = webView;
17
+    }
18
+
19
+    @JavascriptInterface
20
+    public void send(String message) {
21
+        WritableMap event = Arguments.createMap();
22
+        event.putString("message", message);
23
+        ReactContext reactContext = (ReactContext) this.webView.getContext();
24
+        reactContext.getJSModule(RCTEventEmitter.class).receiveEvent(
25
+                this.webView.getId(),
26
+                "topChange",
27
+                event);
28
+    }
29
+}

+ 61
- 31
autoHeightWebView/index.android.js Visa fil

8
 import {
8
 import {
9
     findNodeHandle,
9
     findNodeHandle,
10
     requireNativeComponent,
10
     requireNativeComponent,
11
+    DeviceEventEmitter,
11
     Dimensions,
12
     Dimensions,
13
+    Platform,
12
     UIManager,
14
     UIManager,
13
     View,
15
     View,
14
     WebView
16
     WebView
20
     constructor(props) {
22
     constructor(props) {
21
         super(props);
23
         super(props);
22
         this.onMessage = this.onMessage.bind(this);
24
         this.onMessage = this.onMessage.bind(this);
23
-        this.onLoadingStart = this.onLoadingStart.bind(this);
25
+        if (IsBelowKitKat) {
26
+            this.listenWebViewBridgeMessage = this.listenWebViewBridgeMessage.bind(this);
27
+        }
24
         const initialScript = props.files ? this.appendFilesToHead(props.files, BaseScript) : BaseScript;
28
         const initialScript = props.files ? this.appendFilesToHead(props.files, BaseScript) : BaseScript;
25
         this.state = {
29
         this.state = {
26
-            isOnLoadingStart: false,
30
+            isChangingSource: false,
27
             height: 0,
31
             height: 0,
28
             heightOffset: 0,
32
             heightOffset: 0,
29
             script: initialScript
33
             script: initialScript
30
         };
34
         };
31
     }
35
     }
32
 
36
 
37
+    componentWillMount() {
38
+        if (IsBelowKitKat) {
39
+            DeviceEventEmitter.addListener("webViewBridgeMessage", this.listenWebViewBridgeMessage);
40
+        }
41
+    }
42
+
33
     componentDidMount() {
43
     componentDidMount() {
34
         this.startInterval();
44
         this.startInterval();
35
     }
45
     }
41
             return;
51
             return;
42
         }
52
         }
43
         else {
53
         else {
44
-            this.htmlHasChanged = true;
45
             this.setState({
54
             this.setState({
55
+                isChangingSource: true,
46
                 height: 0,
56
                 height: 0,
47
                 heightOffset: 0
57
                 heightOffset: 0
48
             });
58
             });
55
     }
65
     }
56
 
66
 
57
     componentDidUpdate(prevProps, prevState) {
67
     componentDidUpdate(prevProps, prevState) {
58
-        if (this.htmlHasChanged) {
59
-            if (this.state.isOnLoadingStart && this.state.height === 0 && this.state.heightOffset === 0) {
60
-                this.stopInterval = false;
61
-                this.startInterval();
62
-                this.htmlHasChanged = false;
63
-                this.setState({ isOnLoadingStart: false });
64
-            }
68
+        // redisplay webview when changing source
69
+        if (this.state.isChangingSource) {
70
+            this.startInterval();
71
+            this.setState({ isChangingSource: false });
65
         }
72
         }
66
     }
73
     }
67
 
74
 
68
     componentWillUnmount() {
75
     componentWillUnmount() {
69
         this.stopInterval();
76
         this.stopInterval();
77
+        if (IsBelowKitKat) {
78
+            DeviceEventEmitter.removeListener("webViewBridgeMessage", listenWebViewBridgeMessage);
79
+        }
70
     }
80
     }
71
 
81
 
72
-    onLoadingStart() {
73
-        if (this.htmlHasChanged) {
74
-            this.setState({ isOnLoadingStart: true });
75
-        }
82
+    listenWebViewBridgeMessage(body) {
83
+        this.onMessage(body.message);
76
     }
84
     }
77
 
85
 
78
     postMessage(data) {
86
     postMessage(data) {
79
         UIManager.dispatchViewManagerCommand(
87
         UIManager.dispatchViewManagerCommand(
80
             findNodeHandle(this.webview),
88
             findNodeHandle(this.webview),
81
-            UIManager.RCTWebView.Commands.postMessage,
89
+            UIManager.RCTAutoHeightWebView.Commands.postMessage,
82
             [String(data)]
90
             [String(data)]
83
         );
91
         );
84
     };
92
     };
85
 
93
 
94
+    sendToWebView(message) {
95
+        UIManager.dispatchViewManagerCommand(
96
+            findNodeHandle(this.webview),
97
+            UIManager.RCTAutoHeightWebView.Commands.sendToWebView,
98
+            [String(message)]
99
+        );
100
+    }
101
+
86
     startInterval() {
102
     startInterval() {
87
-        this.stopInterval = false;
103
+        this.finishInterval = false;
88
         this.interval = setInterval(() => {
104
         this.interval = setInterval(() => {
89
-            if (!this.stopInterval) {
90
-                this.postMessage('getBodyHeight');
105
+            if (!this.finishInterval) {
106
+                IsBelowKitKat ? this.sendToWebView('getBodyHeight') : this.postMessage('getBodyHeight');
91
             }
107
             }
92
         }, 205);
108
         }, 205);
93
     }
109
     }
94
 
110
 
95
     stopInterval() {
111
     stopInterval() {
96
-        this.stopInterval = true;
112
+        this.finishInterval = true;
97
         clearInterval(this.interval);
113
         clearInterval(this.interval);
98
     }
114
     }
99
 
115
 
100
     onMessage(e) {
116
     onMessage(e) {
101
-        const height = parseInt(e.nativeEvent.data);
117
+        const height = parseInt(IsBelowKitKat ? e.nativeEvent.message : e.nativeEvent.data);
102
         if (height) {
118
         if (height) {
103
             this.stopInterval();
119
             this.stopInterval();
120
+            console.log(height);
104
             this.setState({
121
             this.setState({
105
                 heightOffset: this.props.heightOffset,
122
                 heightOffset: this.props.heightOffset,
106
                 height
123
                 height
138
                 width: ScreenWidth,
155
                 width: ScreenWidth,
139
                 height: this.state.height + this.state.heightOffset
156
                 height: this.state.height + this.state.heightOffset
140
             }, this.props.style]}>
157
             }, this.props.style]}>
141
-                <RCTAutoHeightWebView
142
-                    ref={webview => this.webview = webview}
143
-                    style={{ flex: 1 }}
144
-                    javaScriptEnabled={true}
145
-                    injectedJavaScript={this.state.script + this.props.customScript}
146
-                    onLoadingStart={this.onLoadingStart}
147
-                    scrollEnabled={false}
148
-                    source={source}
149
-                    onMessage={this.onMessage}
150
-                    messagingEnabled={true} />
158
+                {
159
+                    this.state.isChangingSource ? null :
160
+                        <RCTAutoHeightWebView
161
+                            ref={webview => this.webview = webview}
162
+                            style={{ flex: 1 }}
163
+                            javaScriptEnabled={true}
164
+                            injectedJavaScript={this.state.script + this.props.customScript}
165
+                            scrollEnabled={false}
166
+                            source={source}
167
+                            onChange={this.onMessage}
168
+                            onMessage={this.onMessage}
169
+                            messagingEnabled={true} />
170
+                }
151
             </View>
171
             </View>
152
         );
172
         );
153
     }
173
     }
177
 
197
 
178
 const ScreenWidth = Dimensions.get('window').width;
198
 const ScreenWidth = Dimensions.get('window').width;
179
 
199
 
200
+const IsBelowKitKat = Platform.Version < 19;
201
+
180
 const BaseScript =
202
 const BaseScript =
181
-    `
203
+    IsBelowKitKat ?
204
+        `
205
+    (function () {
206
+        AutoHeightWebView.onMessage = function (message) {
207
+            AutoHeightWebView.send(String(document.body.offsetHeight));
208
+        };
209
+    } ()); 
210
+    ` :
211
+        `
182
     ; (function () {
212
     ; (function () {
183
         document.addEventListener('message', function (e) {
213
         document.addEventListener('message', function (e) {
184
             window.postMessage(String(document.body.offsetHeight));
214
             window.postMessage(String(document.body.offsetHeight));

+ 0
- 3
examples/autoHeightWebViewExplorer/android/app/src/main/res/values/strings.xml Visa fil

1
-<resources>
2
-    <string name="app_name">autoHeightWebViewExplorer</string>
3
-</resources>

+ 0
- 9
examples/autoHeightWebViewExplorer/index.android.js Visa fil

1
-'use strict'
2
-
3
-import React from 'react';
4
-
5
-import { AppRegistry } from 'react-native';
6
-
7
-import Explorer from './explorer'
8
-
9
-AppRegistry.registerComponent('autoHeightWebViewExplorer', () => Explorer);

+ 0
- 9
examples/autoHeightWebViewExplorer/index.ios.js Visa fil

1
-'use strict'
2
-
3
-import React from 'react';
4
-
5
-import { AppRegistry } from 'react-native';
6
-
7
-import Explorer from './explorer'
8
-
9
-AppRegistry.registerComponent('autoHeightWebViewExplorer', () => Explorer);

examples/autoHeightWebViewExplorer/.babelrc → examples/explorer/.babelrc Visa fil


examples/autoHeightWebViewExplorer/.buckconfig → examples/explorer/.buckconfig Visa fil


examples/autoHeightWebViewExplorer/.flowconfig → examples/explorer/.flowconfig Visa fil


examples/autoHeightWebViewExplorer/.gitattributes → examples/explorer/.gitattributes Visa fil


examples/autoHeightWebViewExplorer/.gitignore → examples/explorer/.gitignore Visa fil


examples/autoHeightWebViewExplorer/.watchmanconfig → examples/explorer/.watchmanconfig Visa fil


examples/autoHeightWebViewExplorer/__tests__/index.android.js → examples/explorer/__tests__/index.android.js Visa fil


examples/autoHeightWebViewExplorer/__tests__/index.ios.js → examples/explorer/__tests__/index.ios.js Visa fil


examples/autoHeightWebViewExplorer/android/app/BUCK → examples/explorer/android/app/BUCK Visa fil

46
 
46
 
47
 android_build_config(
47
 android_build_config(
48
   name = 'build_config',
48
   name = 'build_config',
49
-  package = 'com.autoheightwebviewexplorer',
49
+  package = 'com.explorer',
50
 )
50
 )
51
 
51
 
52
 android_resource(
52
 android_resource(
53
   name = 'res',
53
   name = 'res',
54
   res = 'src/main/res',
54
   res = 'src/main/res',
55
-  package = 'com.autoheightwebviewexplorer',
55
+  package = 'com.explorer',
56
 )
56
 )
57
 
57
 
58
 android_binary(
58
 android_binary(

examples/autoHeightWebViewExplorer/android/app/build.gradle → examples/explorer/android/app/build.gradle Visa fil

87
     buildToolsVersion "23.0.1"
87
     buildToolsVersion "23.0.1"
88
 
88
 
89
     defaultConfig {
89
     defaultConfig {
90
-        applicationId "com.autoheightwebviewexplorer"
90
+        applicationId "com.explorer"
91
         minSdkVersion 16
91
         minSdkVersion 16
92
         targetSdkVersion 22
92
         targetSdkVersion 22
93
         versionCode 1
93
         versionCode 1

examples/autoHeightWebViewExplorer/android/app/proguard-rules.pro → examples/explorer/android/app/proguard-rules.pro Visa fil


examples/autoHeightWebViewExplorer/android/app/src/main/AndroidManifest.xml → examples/explorer/android/app/src/main/AndroidManifest.xml Visa fil

1
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
1
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
-    package="com.autoheightwebviewexplorer"
2
+    package="com.explorer"
3
     android:versionCode="1"
3
     android:versionCode="1"
4
     android:versionName="1.0">
4
     android:versionName="1.0">
5
 
5
 

examples/autoHeightWebViewExplorer/android/app/src/main/java/com/autoheightwebviewexplorer/MainActivity.java → examples/explorer/android/app/src/main/java/com/explorer/MainActivity.java Visa fil

1
-package com.autoheightwebviewexplorer;
1
+package com.explorer;
2
 
2
 
3
 import com.facebook.react.ReactActivity;
3
 import com.facebook.react.ReactActivity;
4
 
4
 
10
      */
10
      */
11
     @Override
11
     @Override
12
     protected String getMainComponentName() {
12
     protected String getMainComponentName() {
13
-        return "autoHeightWebViewExplorer";
13
+        return "explorer";
14
     }
14
     }
15
 }
15
 }

examples/autoHeightWebViewExplorer/android/app/src/main/java/com/autoheightwebviewexplorer/MainApplication.java → examples/explorer/android/app/src/main/java/com/explorer/MainApplication.java Visa fil

1
-package com.autoheightwebviewexplorer;
1
+package com.explorer;
2
 
2
 
3
 import android.app.Application;
3
 import android.app.Application;
4
 import android.util.Log;
4
 import android.util.Log;

examples/autoHeightWebViewExplorer/android/app/src/main/res/mipmap-hdpi/ic_launcher.png → examples/explorer/android/app/src/main/res/mipmap-hdpi/ic_launcher.png Visa fil


examples/autoHeightWebViewExplorer/android/app/src/main/res/mipmap-mdpi/ic_launcher.png → examples/explorer/android/app/src/main/res/mipmap-mdpi/ic_launcher.png Visa fil


examples/autoHeightWebViewExplorer/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png → examples/explorer/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png Visa fil


examples/autoHeightWebViewExplorer/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png → examples/explorer/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png Visa fil


+ 3
- 0
examples/explorer/android/app/src/main/res/values/strings.xml Visa fil

1
+<resources>
2
+    <string name="app_name">explorer</string>
3
+</resources>

examples/autoHeightWebViewExplorer/android/app/src/main/res/values/styles.xml → examples/explorer/android/app/src/main/res/values/styles.xml Visa fil


examples/autoHeightWebViewExplorer/android/build.gradle → examples/explorer/android/build.gradle Visa fil


examples/autoHeightWebViewExplorer/android/gradle.properties → examples/explorer/android/gradle.properties Visa fil


examples/autoHeightWebViewExplorer/android/gradle/wrapper/gradle-wrapper.jar → examples/explorer/android/gradle/wrapper/gradle-wrapper.jar Visa fil


examples/autoHeightWebViewExplorer/android/gradle/wrapper/gradle-wrapper.properties → examples/explorer/android/gradle/wrapper/gradle-wrapper.properties Visa fil


examples/autoHeightWebViewExplorer/android/gradlew → examples/explorer/android/gradlew Visa fil


+ 90
- 0
examples/explorer/android/gradlew.bat Visa fil

1
+@if "%DEBUG%" == "" @echo off
2
+@rem ##########################################################################
3
+@rem
4
+@rem  Gradle startup script for Windows
5
+@rem
6
+@rem ##########################################################################
7
+
8
+@rem Set local scope for the variables with windows NT shell
9
+if "%OS%"=="Windows_NT" setlocal
10
+
11
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12
+set DEFAULT_JVM_OPTS=
13
+
14
+set DIRNAME=%~dp0
15
+if "%DIRNAME%" == "" set DIRNAME=.
16
+set APP_BASE_NAME=%~n0
17
+set APP_HOME=%DIRNAME%
18
+
19
+@rem Find java.exe
20
+if defined JAVA_HOME goto findJavaFromJavaHome
21
+
22
+set JAVA_EXE=java.exe
23
+%JAVA_EXE% -version >NUL 2>&1
24
+if "%ERRORLEVEL%" == "0" goto init
25
+
26
+echo.
27
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28
+echo.
29
+echo Please set the JAVA_HOME variable in your environment to match the
30
+echo location of your Java installation.
31
+
32
+goto fail
33
+
34
+:findJavaFromJavaHome
35
+set JAVA_HOME=%JAVA_HOME:"=%
36
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
+
38
+if exist "%JAVA_EXE%" goto init
39
+
40
+echo.
41
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42
+echo.
43
+echo Please set the JAVA_HOME variable in your environment to match the
44
+echo location of your Java installation.
45
+
46
+goto fail
47
+
48
+:init
49
+@rem Get command-line arguments, handling Windowz variants
50
+
51
+if not "%OS%" == "Windows_NT" goto win9xME_args
52
+if "%@eval[2+2]" == "4" goto 4NT_args
53
+
54
+:win9xME_args
55
+@rem Slurp the command line arguments.
56
+set CMD_LINE_ARGS=
57
+set _SKIP=2
58
+
59
+:win9xME_args_slurp
60
+if "x%~1" == "x" goto execute
61
+
62
+set CMD_LINE_ARGS=%*
63
+goto execute
64
+
65
+:4NT_args
66
+@rem Get arguments from the 4NT Shell from JP Software
67
+set CMD_LINE_ARGS=%$
68
+
69
+:execute
70
+@rem Setup the command line
71
+
72
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73
+
74
+@rem Execute Gradle
75
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76
+
77
+:end
78
+@rem End local scope for the variables with windows NT shell
79
+if "%ERRORLEVEL%"=="0" goto mainEnd
80
+
81
+:fail
82
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83
+rem the _cmd.exe /c_ return code!
84
+if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85
+exit /b 1
86
+
87
+:mainEnd
88
+if "%OS%"=="Windows_NT" endlocal
89
+
90
+:omega

examples/autoHeightWebViewExplorer/android/keystores/BUCK → examples/explorer/android/keystores/BUCK Visa fil


examples/autoHeightWebViewExplorer/android/keystores/debug.keystore.properties → examples/explorer/android/keystores/debug.keystore.properties Visa fil


examples/autoHeightWebViewExplorer/android/settings.gradle → examples/explorer/android/settings.gradle Visa fil

1
-rootProject.name = 'autoHeightWebViewExplorer'
1
+rootProject.name = 'explorer'
2
 include ':react-native-autoheightwebview'
2
 include ':react-native-autoheightwebview'
3
 project(':react-native-autoheightwebview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-autoheightwebview/android')
3
 project(':react-native-autoheightwebview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-autoheightwebview/android')
4
 
4
 

examples/autoHeightWebViewExplorer/explorer.js → examples/explorer/explorer.js Visa fil

6
 } from 'react';
6
 } from 'react';
7
 
7
 
8
 import {
8
 import {
9
-    findNodeHandle,
10
-    requireNativeComponent,
11
-    Dimensions,
12
-    UIManager,
13
-    Platform,
14
     ScrollView,
9
     ScrollView,
15
     StyleSheet,
10
     StyleSheet,
16
     Text,
11
     Text,
17
     TouchableOpacity,
12
     TouchableOpacity,
18
-    View,
19
-    WebView
13
+    View
20
 } from 'react-native';
14
 } from 'react-native';
21
 
15
 
22
 import AutoHeightWebView from 'react-native-autoheightwebview';
16
 import AutoHeightWebView from 'react-native-autoheightwebview';

+ 9
- 0
examples/explorer/index.android.js Visa fil

1
+'use strict'
2
+
3
+import React from 'react';
4
+
5
+import { AppRegistry } from 'react-native';
6
+
7
+import Explorer from './explorer';
8
+
9
+AppRegistry.registerComponent('explorer', () => Explorer);

+ 9
- 0
examples/explorer/index.ios.js Visa fil

1
+'use strict'
2
+
3
+import React from 'react';
4
+
5
+import { AppRegistry } from 'react-native';
6
+
7
+import Explorer from './explorer';
8
+
9
+AppRegistry.registerComponent('explorer', () => Explorer);

examples/autoHeightWebViewExplorer/ios/autoHeightWebViewExplorer.xcodeproj/project.pbxproj → examples/explorer/ios/explorer.xcodeproj/project.pbxproj Visa fil

12
 		00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
12
 		00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
13
 		00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
13
 		00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
14
 		00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
14
 		00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
15
-		00E356F31AD99517003FC87E /* autoHeightWebViewExplorerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* autoHeightWebViewExplorerTests.m */; };
15
+		00E356F31AD99517003FC87E /* explorerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* explorerTests.m */; };
16
 		133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
16
 		133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
17
 		139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
17
 		139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
18
 		139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
18
 		139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
67
 			containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
67
 			containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
68
 			proxyType = 1;
68
 			proxyType = 1;
69
 			remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
69
 			remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
70
-			remoteInfo = autoHeightWebViewExplorer;
70
+			remoteInfo = explorer;
71
 		};
71
 		};
72
 		139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
72
 		139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
73
 			isa = PBXContainerItemProxy;
73
 			isa = PBXContainerItemProxy;
218
 		00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = "<group>"; };
218
 		00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = "<group>"; };
219
 		00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = "<group>"; };
219
 		00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = "<group>"; };
220
 		00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = "<group>"; };
220
 		00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = "<group>"; };
221
-		00E356EE1AD99517003FC87E /* autoHeightWebViewExplorerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = autoHeightWebViewExplorerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
221
+		00E356EE1AD99517003FC87E /* explorerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = explorerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
222
 		00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
222
 		00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
223
-		00E356F21AD99517003FC87E /* autoHeightWebViewExplorerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = autoHeightWebViewExplorerTests.m; sourceTree = "<group>"; };
223
+		00E356F21AD99517003FC87E /* explorerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = explorerTests.m; sourceTree = "<group>"; };
224
 		139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = "<group>"; };
224
 		139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = "<group>"; };
225
 		139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = "<group>"; };
225
 		139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = "<group>"; };
226
-		13B07F961A680F5B00A75B9A /* autoHeightWebViewExplorer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = autoHeightWebViewExplorer.app; sourceTree = BUILT_PRODUCTS_DIR; };
227
-		13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = autoHeightWebViewExplorer/AppDelegate.h; sourceTree = "<group>"; };
228
-		13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = autoHeightWebViewExplorer/AppDelegate.m; sourceTree = "<group>"; };
226
+		13B07F961A680F5B00A75B9A /* explorer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = explorer.app; sourceTree = BUILT_PRODUCTS_DIR; };
227
+		13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = explorer/AppDelegate.h; sourceTree = "<group>"; };
228
+		13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = explorer/AppDelegate.m; sourceTree = "<group>"; };
229
 		13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
229
 		13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
230
-		13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = autoHeightWebViewExplorer/Images.xcassets; sourceTree = "<group>"; };
231
-		13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = autoHeightWebViewExplorer/Info.plist; sourceTree = "<group>"; };
232
-		13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = autoHeightWebViewExplorer/main.m; sourceTree = "<group>"; };
230
+		13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = explorer/Images.xcassets; sourceTree = "<group>"; };
231
+		13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = explorer/Info.plist; sourceTree = "<group>"; };
232
+		13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = explorer/main.m; sourceTree = "<group>"; };
233
 		146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = "<group>"; };
233
 		146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = "<group>"; };
234
 		5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = "<group>"; };
234
 		5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = "<group>"; };
235
 		78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = "<group>"; };
235
 		78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = "<group>"; };
308
 			name = Products;
308
 			name = Products;
309
 			sourceTree = "<group>";
309
 			sourceTree = "<group>";
310
 		};
310
 		};
311
-		00E356EF1AD99517003FC87E /* autoHeightWebViewExplorerTests */ = {
311
+		00E356EF1AD99517003FC87E /* explorerTests */ = {
312
 			isa = PBXGroup;
312
 			isa = PBXGroup;
313
 			children = (
313
 			children = (
314
-				00E356F21AD99517003FC87E /* autoHeightWebViewExplorerTests.m */,
314
+				00E356F21AD99517003FC87E /* explorerTests.m */,
315
 				00E356F01AD99517003FC87E /* Supporting Files */,
315
 				00E356F01AD99517003FC87E /* Supporting Files */,
316
 			);
316
 			);
317
-			path = autoHeightWebViewExplorerTests;
317
+			path = explorerTests;
318
 			sourceTree = "<group>";
318
 			sourceTree = "<group>";
319
 		};
319
 		};
320
 		00E356F01AD99517003FC87E /* Supporting Files */ = {
320
 		00E356F01AD99517003FC87E /* Supporting Files */ = {
343
 			name = Products;
343
 			name = Products;
344
 			sourceTree = "<group>";
344
 			sourceTree = "<group>";
345
 		};
345
 		};
346
-		13B07FAE1A68108700A75B9A /* autoHeightWebViewExplorer */ = {
346
+		13B07FAE1A68108700A75B9A /* explorer */ = {
347
 			isa = PBXGroup;
347
 			isa = PBXGroup;
348
 			children = (
348
 			children = (
349
 				008F07F21AC5B25A0029DE68 /* main.jsbundle */,
349
 				008F07F21AC5B25A0029DE68 /* main.jsbundle */,
354
 				13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
354
 				13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
355
 				13B07FB71A68108700A75B9A /* main.m */,
355
 				13B07FB71A68108700A75B9A /* main.m */,
356
 			);
356
 			);
357
-			name = autoHeightWebViewExplorer;
357
+			name = explorer;
358
 			sourceTree = "<group>";
358
 			sourceTree = "<group>";
359
 		};
359
 		};
360
 		146834001AC3E56700842450 /* Products */ = {
360
 		146834001AC3E56700842450 /* Products */ = {
420
 		83CBB9F61A601CBA00E9B192 = {
420
 		83CBB9F61A601CBA00E9B192 = {
421
 			isa = PBXGroup;
421
 			isa = PBXGroup;
422
 			children = (
422
 			children = (
423
-				13B07FAE1A68108700A75B9A /* autoHeightWebViewExplorer */,
423
+				13B07FAE1A68108700A75B9A /* explorer */,
424
 				832341AE1AAA6A7D00B99B32 /* Libraries */,
424
 				832341AE1AAA6A7D00B99B32 /* Libraries */,
425
-				00E356EF1AD99517003FC87E /* autoHeightWebViewExplorerTests */,
425
+				00E356EF1AD99517003FC87E /* explorerTests */,
426
 				83CBBA001A601CBA00E9B192 /* Products */,
426
 				83CBBA001A601CBA00E9B192 /* Products */,
427
 			);
427
 			);
428
 			indentWidth = 2;
428
 			indentWidth = 2;
432
 		83CBBA001A601CBA00E9B192 /* Products */ = {
432
 		83CBBA001A601CBA00E9B192 /* Products */ = {
433
 			isa = PBXGroup;
433
 			isa = PBXGroup;
434
 			children = (
434
 			children = (
435
-				13B07F961A680F5B00A75B9A /* autoHeightWebViewExplorer.app */,
436
-				00E356EE1AD99517003FC87E /* autoHeightWebViewExplorerTests.xctest */,
435
+				13B07F961A680F5B00A75B9A /* explorer.app */,
436
+				00E356EE1AD99517003FC87E /* explorerTests.xctest */,
437
 			);
437
 			);
438
 			name = Products;
438
 			name = Products;
439
 			sourceTree = "<group>";
439
 			sourceTree = "<group>";
441
 /* End PBXGroup section */
441
 /* End PBXGroup section */
442
 
442
 
443
 /* Begin PBXNativeTarget section */
443
 /* Begin PBXNativeTarget section */
444
-		00E356ED1AD99517003FC87E /* autoHeightWebViewExplorerTests */ = {
444
+		00E356ED1AD99517003FC87E /* explorerTests */ = {
445
 			isa = PBXNativeTarget;
445
 			isa = PBXNativeTarget;
446
-			buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "autoHeightWebViewExplorerTests" */;
446
+			buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "explorerTests" */;
447
 			buildPhases = (
447
 			buildPhases = (
448
 				00E356EA1AD99517003FC87E /* Sources */,
448
 				00E356EA1AD99517003FC87E /* Sources */,
449
 				00E356EB1AD99517003FC87E /* Frameworks */,
449
 				00E356EB1AD99517003FC87E /* Frameworks */,
454
 			dependencies = (
454
 			dependencies = (
455
 				00E356F51AD99517003FC87E /* PBXTargetDependency */,
455
 				00E356F51AD99517003FC87E /* PBXTargetDependency */,
456
 			);
456
 			);
457
-			name = autoHeightWebViewExplorerTests;
458
-			productName = autoHeightWebViewExplorerTests;
459
-			productReference = 00E356EE1AD99517003FC87E /* autoHeightWebViewExplorerTests.xctest */;
457
+			name = explorerTests;
458
+			productName = explorerTests;
459
+			productReference = 00E356EE1AD99517003FC87E /* explorerTests.xctest */;
460
 			productType = "com.apple.product-type.bundle.unit-test";
460
 			productType = "com.apple.product-type.bundle.unit-test";
461
 		};
461
 		};
462
-		13B07F861A680F5B00A75B9A /* autoHeightWebViewExplorer */ = {
462
+		13B07F861A680F5B00A75B9A /* explorer */ = {
463
 			isa = PBXNativeTarget;
463
 			isa = PBXNativeTarget;
464
-			buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "autoHeightWebViewExplorer" */;
464
+			buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "explorer" */;
465
 			buildPhases = (
465
 			buildPhases = (
466
 				13B07F871A680F5B00A75B9A /* Sources */,
466
 				13B07F871A680F5B00A75B9A /* Sources */,
467
 				13B07F8C1A680F5B00A75B9A /* Frameworks */,
467
 				13B07F8C1A680F5B00A75B9A /* Frameworks */,
472
 			);
472
 			);
473
 			dependencies = (
473
 			dependencies = (
474
 			);
474
 			);
475
-			name = autoHeightWebViewExplorer;
475
+			name = explorer;
476
 			productName = "Hello World";
476
 			productName = "Hello World";
477
-			productReference = 13B07F961A680F5B00A75B9A /* autoHeightWebViewExplorer.app */;
477
+			productReference = 13B07F961A680F5B00A75B9A /* explorer.app */;
478
 			productType = "com.apple.product-type.application";
478
 			productType = "com.apple.product-type.application";
479
 		};
479
 		};
480
 /* End PBXNativeTarget section */
480
 /* End PBXNativeTarget section */
492
 					};
492
 					};
493
 				};
493
 				};
494
 			};
494
 			};
495
-			buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "autoHeightWebViewExplorer" */;
495
+			buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "explorer" */;
496
 			compatibilityVersion = "Xcode 3.2";
496
 			compatibilityVersion = "Xcode 3.2";
497
 			developmentRegion = English;
497
 			developmentRegion = English;
498
 			hasScannedForEncodings = 0;
498
 			hasScannedForEncodings = 0;
551
 			);
551
 			);
552
 			projectRoot = "";
552
 			projectRoot = "";
553
 			targets = (
553
 			targets = (
554
-				13B07F861A680F5B00A75B9A /* autoHeightWebViewExplorer */,
555
-				00E356ED1AD99517003FC87E /* autoHeightWebViewExplorerTests */,
554
+				13B07F861A680F5B00A75B9A /* explorer */,
555
+				00E356ED1AD99517003FC87E /* explorerTests */,
556
 			);
556
 			);
557
 		};
557
 		};
558
 /* End PBXProject section */
558
 /* End PBXProject section */
776
 			isa = PBXSourcesBuildPhase;
776
 			isa = PBXSourcesBuildPhase;
777
 			buildActionMask = 2147483647;
777
 			buildActionMask = 2147483647;
778
 			files = (
778
 			files = (
779
-				00E356F31AD99517003FC87E /* autoHeightWebViewExplorerTests.m in Sources */,
779
+				00E356F31AD99517003FC87E /* explorerTests.m in Sources */,
780
 			);
780
 			);
781
 			runOnlyForDeploymentPostprocessing = 0;
781
 			runOnlyForDeploymentPostprocessing = 0;
782
 		};
782
 		};
794
 /* Begin PBXTargetDependency section */
794
 /* Begin PBXTargetDependency section */
795
 		00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
795
 		00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
796
 			isa = PBXTargetDependency;
796
 			isa = PBXTargetDependency;
797
-			target = 13B07F861A680F5B00A75B9A /* autoHeightWebViewExplorer */;
797
+			target = 13B07F861A680F5B00A75B9A /* explorer */;
798
 			targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
798
 			targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
799
 		};
799
 		};
800
 /* End PBXTargetDependency section */
800
 /* End PBXTargetDependency section */
806
 				13B07FB21A68108700A75B9A /* Base */,
806
 				13B07FB21A68108700A75B9A /* Base */,
807
 			);
807
 			);
808
 			name = LaunchScreen.xib;
808
 			name = LaunchScreen.xib;
809
-			path = autoHeightWebViewExplorer;
809
+			path = explorer;
810
 			sourceTree = "<group>";
810
 			sourceTree = "<group>";
811
 		};
811
 		};
812
 /* End PBXVariantGroup section */
812
 /* End PBXVariantGroup section */
820
 					"DEBUG=1",
820
 					"DEBUG=1",
821
 					"$(inherited)",
821
 					"$(inherited)",
822
 				);
822
 				);
823
-				INFOPLIST_FILE = autoHeightWebViewExplorerTests/Info.plist;
823
+				INFOPLIST_FILE = explorerTests/Info.plist;
824
 				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
824
 				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
825
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
825
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
826
 				PRODUCT_NAME = "$(TARGET_NAME)";
826
 				PRODUCT_NAME = "$(TARGET_NAME)";
827
-				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/autoHeightWebViewExplorer.app/autoHeightWebViewExplorer";
827
+				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/explorer.app/explorer";
828
 			};
828
 			};
829
 			name = Debug;
829
 			name = Debug;
830
 		};
830
 		};
833
 			buildSettings = {
833
 			buildSettings = {
834
 				BUNDLE_LOADER = "$(TEST_HOST)";
834
 				BUNDLE_LOADER = "$(TEST_HOST)";
835
 				COPY_PHASE_STRIP = NO;
835
 				COPY_PHASE_STRIP = NO;
836
-				INFOPLIST_FILE = autoHeightWebViewExplorerTests/Info.plist;
836
+				INFOPLIST_FILE = explorerTests/Info.plist;
837
 				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
837
 				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
838
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
838
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
839
 				PRODUCT_NAME = "$(TARGET_NAME)";
839
 				PRODUCT_NAME = "$(TARGET_NAME)";
840
-				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/autoHeightWebViewExplorer.app/autoHeightWebViewExplorer";
840
+				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/explorer.app/explorer";
841
 			};
841
 			};
842
 			name = Release;
842
 			name = Release;
843
 		};
843
 		};
847
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
847
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
848
 				CURRENT_PROJECT_VERSION = 1;
848
 				CURRENT_PROJECT_VERSION = 1;
849
 				DEAD_CODE_STRIPPING = NO;
849
 				DEAD_CODE_STRIPPING = NO;
850
-				INFOPLIST_FILE = autoHeightWebViewExplorer/Info.plist;
850
+				INFOPLIST_FILE = explorer/Info.plist;
851
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
851
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
852
 				OTHER_LDFLAGS = (
852
 				OTHER_LDFLAGS = (
853
 					"$(inherited)",
853
 					"$(inherited)",
854
 					"-ObjC",
854
 					"-ObjC",
855
 					"-lc++",
855
 					"-lc++",
856
 				);
856
 				);
857
-				PRODUCT_NAME = autoHeightWebViewExplorer;
857
+				PRODUCT_NAME = explorer;
858
 				VERSIONING_SYSTEM = "apple-generic";
858
 				VERSIONING_SYSTEM = "apple-generic";
859
 			};
859
 			};
860
 			name = Debug;
860
 			name = Debug;
864
 			buildSettings = {
864
 			buildSettings = {
865
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
865
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
866
 				CURRENT_PROJECT_VERSION = 1;
866
 				CURRENT_PROJECT_VERSION = 1;
867
-				INFOPLIST_FILE = autoHeightWebViewExplorer/Info.plist;
867
+				INFOPLIST_FILE = explorer/Info.plist;
868
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
868
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
869
 				OTHER_LDFLAGS = (
869
 				OTHER_LDFLAGS = (
870
 					"$(inherited)",
870
 					"$(inherited)",
871
 					"-ObjC",
871
 					"-ObjC",
872
 					"-lc++",
872
 					"-lc++",
873
 				);
873
 				);
874
-				PRODUCT_NAME = autoHeightWebViewExplorer;
874
+				PRODUCT_NAME = explorer;
875
 				VERSIONING_SYSTEM = "apple-generic";
875
 				VERSIONING_SYSTEM = "apple-generic";
876
 			};
876
 			};
877
 			name = Release;
877
 			name = Release;
955
 /* End XCBuildConfiguration section */
955
 /* End XCBuildConfiguration section */
956
 
956
 
957
 /* Begin XCConfigurationList section */
957
 /* Begin XCConfigurationList section */
958
-		00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "autoHeightWebViewExplorerTests" */ = {
958
+		00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "explorerTests" */ = {
959
 			isa = XCConfigurationList;
959
 			isa = XCConfigurationList;
960
 			buildConfigurations = (
960
 			buildConfigurations = (
961
 				00E356F61AD99517003FC87E /* Debug */,
961
 				00E356F61AD99517003FC87E /* Debug */,
964
 			defaultConfigurationIsVisible = 0;
964
 			defaultConfigurationIsVisible = 0;
965
 			defaultConfigurationName = Release;
965
 			defaultConfigurationName = Release;
966
 		};
966
 		};
967
-		13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "autoHeightWebViewExplorer" */ = {
967
+		13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "explorer" */ = {
968
 			isa = XCConfigurationList;
968
 			isa = XCConfigurationList;
969
 			buildConfigurations = (
969
 			buildConfigurations = (
970
 				13B07F941A680F5B00A75B9A /* Debug */,
970
 				13B07F941A680F5B00A75B9A /* Debug */,
973
 			defaultConfigurationIsVisible = 0;
973
 			defaultConfigurationIsVisible = 0;
974
 			defaultConfigurationName = Release;
974
 			defaultConfigurationName = Release;
975
 		};
975
 		};
976
-		83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "autoHeightWebViewExplorer" */ = {
976
+		83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "explorer" */ = {
977
 			isa = XCConfigurationList;
977
 			isa = XCConfigurationList;
978
 			buildConfigurations = (
978
 			buildConfigurations = (
979
 				83CBBA201A601CBA00E9B192 /* Debug */,
979
 				83CBBA201A601CBA00E9B192 /* Debug */,

examples/autoHeightWebViewExplorer/ios/autoHeightWebViewExplorer.xcodeproj/xcshareddata/xcschemes/autoHeightWebViewExplorer.xcscheme → examples/explorer/ios/explorer.xcodeproj/xcshareddata/xcschemes/explorer.xcscheme Visa fil

29
             <BuildableReference
29
             <BuildableReference
30
                BuildableIdentifier = "primary"
30
                BuildableIdentifier = "primary"
31
                BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
31
                BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
32
-               BuildableName = "autoHeightWebViewExplorer.app"
33
-               BlueprintName = "autoHeightWebViewExplorer"
34
-               ReferencedContainer = "container:autoHeightWebViewExplorer.xcodeproj">
32
+               BuildableName = "explorer.app"
33
+               BlueprintName = "explorer"
34
+               ReferencedContainer = "container:explorer.xcodeproj">
35
             </BuildableReference>
35
             </BuildableReference>
36
          </BuildActionEntry>
36
          </BuildActionEntry>
37
          <BuildActionEntry
37
          <BuildActionEntry
43
             <BuildableReference
43
             <BuildableReference
44
                BuildableIdentifier = "primary"
44
                BuildableIdentifier = "primary"
45
                BlueprintIdentifier = "00E356ED1AD99517003FC87E"
45
                BlueprintIdentifier = "00E356ED1AD99517003FC87E"
46
-               BuildableName = "autoHeightWebViewExplorerTests.xctest"
47
-               BlueprintName = "autoHeightWebViewExplorerTests"
48
-               ReferencedContainer = "container:autoHeightWebViewExplorer.xcodeproj">
46
+               BuildableName = "explorerTests.xctest"
47
+               BlueprintName = "explorerTests"
48
+               ReferencedContainer = "container:explorer.xcodeproj">
49
             </BuildableReference>
49
             </BuildableReference>
50
          </BuildActionEntry>
50
          </BuildActionEntry>
51
       </BuildActionEntries>
51
       </BuildActionEntries>
61
             <BuildableReference
61
             <BuildableReference
62
                BuildableIdentifier = "primary"
62
                BuildableIdentifier = "primary"
63
                BlueprintIdentifier = "00E356ED1AD99517003FC87E"
63
                BlueprintIdentifier = "00E356ED1AD99517003FC87E"
64
-               BuildableName = "autoHeightWebViewExplorerTests.xctest"
65
-               BlueprintName = "autoHeightWebViewExplorerTests"
66
-               ReferencedContainer = "container:autoHeightWebViewExplorer.xcodeproj">
64
+               BuildableName = "explorerTests.xctest"
65
+               BlueprintName = "explorerTests"
66
+               ReferencedContainer = "container:explorer.xcodeproj">
67
             </BuildableReference>
67
             </BuildableReference>
68
          </TestableReference>
68
          </TestableReference>
69
       </Testables>
69
       </Testables>
71
          <BuildableReference
71
          <BuildableReference
72
             BuildableIdentifier = "primary"
72
             BuildableIdentifier = "primary"
73
             BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
73
             BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
74
-            BuildableName = "autoHeightWebViewExplorer.app"
75
-            BlueprintName = "autoHeightWebViewExplorer"
76
-            ReferencedContainer = "container:autoHeightWebViewExplorer.xcodeproj">
74
+            BuildableName = "explorer.app"
75
+            BlueprintName = "explorer"
76
+            ReferencedContainer = "container:explorer.xcodeproj">
77
          </BuildableReference>
77
          </BuildableReference>
78
       </MacroExpansion>
78
       </MacroExpansion>
79
       <AdditionalOptions>
79
       <AdditionalOptions>
94
          <BuildableReference
94
          <BuildableReference
95
             BuildableIdentifier = "primary"
95
             BuildableIdentifier = "primary"
96
             BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
96
             BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
97
-            BuildableName = "autoHeightWebViewExplorer.app"
98
-            BlueprintName = "autoHeightWebViewExplorer"
99
-            ReferencedContainer = "container:autoHeightWebViewExplorer.xcodeproj">
97
+            BuildableName = "explorer.app"
98
+            BlueprintName = "explorer"
99
+            ReferencedContainer = "container:explorer.xcodeproj">
100
          </BuildableReference>
100
          </BuildableReference>
101
       </BuildableProductRunnable>
101
       </BuildableProductRunnable>
102
       <AdditionalOptions>
102
       <AdditionalOptions>
113
          <BuildableReference
113
          <BuildableReference
114
             BuildableIdentifier = "primary"
114
             BuildableIdentifier = "primary"
115
             BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
115
             BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
116
-            BuildableName = "autoHeightWebViewExplorer.app"
117
-            BlueprintName = "autoHeightWebViewExplorer"
118
-            ReferencedContainer = "container:autoHeightWebViewExplorer.xcodeproj">
116
+            BuildableName = "explorer.app"
117
+            BlueprintName = "explorer"
118
+            ReferencedContainer = "container:explorer.xcodeproj">
119
          </BuildableReference>
119
          </BuildableReference>
120
       </BuildableProductRunnable>
120
       </BuildableProductRunnable>
121
    </ProfileAction>
121
    </ProfileAction>

examples/autoHeightWebViewExplorer/ios/autoHeightWebViewExplorer/AppDelegate.h → examples/explorer/ios/explorer/AppDelegate.h Visa fil


examples/autoHeightWebViewExplorer/ios/autoHeightWebViewExplorer/AppDelegate.m → examples/explorer/ios/explorer/AppDelegate.m Visa fil

21
   jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
21
   jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
22
 
22
 
23
   RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
23
   RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
24
-                                                      moduleName:@"autoHeightWebViewExplorer"
24
+                                                      moduleName:@"explorer"
25
                                                initialProperties:nil
25
                                                initialProperties:nil
26
                                                    launchOptions:launchOptions];
26
                                                    launchOptions:launchOptions];
27
   rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
27
   rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];

examples/autoHeightWebViewExplorer/ios/autoHeightWebViewExplorer/Base.lproj/LaunchScreen.xib → examples/explorer/ios/explorer/Base.lproj/LaunchScreen.xib Visa fil

18
                     <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
18
                     <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
19
                     <nil key="highlightedColor"/>
19
                     <nil key="highlightedColor"/>
20
                 </label>
20
                 </label>
21
-                <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="autoHeightWebViewExplorer" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
21
+                <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="explorer" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
22
                     <rect key="frame" x="20" y="140" width="441" height="43"/>
22
                     <rect key="frame" x="20" y="140" width="441" height="43"/>
23
                     <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
23
                     <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
24
                     <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
24
                     <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>

examples/autoHeightWebViewExplorer/ios/autoHeightWebViewExplorer/Images.xcassets/AppIcon.appiconset/Contents.json → examples/explorer/ios/explorer/Images.xcassets/AppIcon.appiconset/Contents.json Visa fil


examples/autoHeightWebViewExplorer/ios/autoHeightWebViewExplorer/Info.plist → examples/explorer/ios/explorer/Info.plist Visa fil


examples/autoHeightWebViewExplorer/ios/autoHeightWebViewExplorer/main.m → examples/explorer/ios/explorer/main.m Visa fil


examples/autoHeightWebViewExplorer/ios/autoHeightWebViewExplorerTests/Info.plist → examples/explorer/ios/explorerTests/Info.plist Visa fil


examples/autoHeightWebViewExplorer/ios/autoHeightWebViewExplorerTests/autoHeightWebViewExplorerTests.m → examples/explorer/ios/explorerTests/explorerTests.m Visa fil

16
 #define TIMEOUT_SECONDS 600
16
 #define TIMEOUT_SECONDS 600
17
 #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
17
 #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
18
 
18
 
19
-@interface autoHeightWebViewExplorerTests : XCTestCase
19
+@interface explorerTests : XCTestCase
20
 
20
 
21
 @end
21
 @end
22
 
22
 
23
-@implementation autoHeightWebViewExplorerTests
23
+@implementation explorerTests
24
 
24
 
25
 - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
25
 - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
26
 {
26
 {

examples/autoHeightWebViewExplorer/package.json → examples/explorer/package.json Visa fil

1
 {
1
 {
2
-  "name": "autoHeightWebViewExplorer",
2
+  "name": "explorer",
3
   "version": "0.0.1",
3
   "version": "0.0.1",
4
   "private": true,
4
   "private": true,
5
   "scripts": {
5
   "scripts": {

+ 1
- 1
package.json Visa fil

1
 {
1
 {
2
   "name": "react-native-autoheightwebview",
2
   "name": "react-native-autoheightwebview",
3
-  "version": "0.0.13",
3
+  "version": "0.0.14",
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": ["android/", "autoHeightWebView/"],
6
   "files": ["android/", "autoHeightWebView/"],