Browse Source

update demo

iou90 7 years ago
parent
commit
907c73675a
45 changed files with 86 additions and 86 deletions
  1. 0
    0
      demo/.babelrc
  2. 0
    0
      demo/.buckconfig
  3. 0
    0
      demo/.flowconfig
  4. 0
    0
      demo/.gitattributes
  5. 0
    0
      demo/.gitignore
  6. 0
    0
      demo/.watchmanconfig
  7. 0
    0
      demo/__tests__/index.android.js
  8. 0
    0
      demo/__tests__/index.ios.js
  9. 2
    2
      demo/android/app/BUCK
  10. 2
    2
      demo/android/app/build.gradle
  11. 0
    0
      demo/android/app/proguard-rules.pro
  12. 1
    1
      demo/android/app/src/main/AndroidManifest.xml
  13. 2
    2
      demo/android/app/src/main/java/com/demo/MainActivity.java
  14. 1
    1
      demo/android/app/src/main/java/com/demo/MainApplication.java
  15. 0
    0
      demo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
  16. 0
    0
      demo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
  17. 0
    0
      demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  18. 0
    0
      demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  19. 3
    0
      demo/android/app/src/main/res/values/strings.xml
  20. 0
    0
      demo/android/app/src/main/res/values/styles.xml
  21. 0
    0
      demo/android/build.gradle
  22. 0
    0
      demo/android/gradle.properties
  23. 0
    0
      demo/android/gradle/wrapper/gradle-wrapper.jar
  24. 0
    0
      demo/android/gradle/wrapper/gradle-wrapper.properties
  25. 0
    0
      demo/android/gradlew
  26. 0
    0
      demo/android/gradlew.bat
  27. 0
    0
      demo/android/keystores/BUCK
  28. 0
    0
      demo/android/keystores/debug.keystore.properties
  29. 5
    0
      demo/android/settings.gradle
  30. 0
    0
      demo/explorer.js
  31. 1
    1
      demo/index.android.js
  32. 1
    1
      demo/index.ios.js
  33. 45
    45
      demo/ios/demo.xcodeproj/project.pbxproj
  34. 18
    18
      demo/ios/demo.xcodeproj/xcshareddata/xcschemes/demo.xcscheme
  35. 0
    0
      demo/ios/demo/AppDelegate.h
  36. 1
    1
      demo/ios/demo/AppDelegate.m
  37. 1
    1
      demo/ios/demo/Base.lproj/LaunchScreen.xib
  38. 0
    0
      demo/ios/demo/Images.xcassets/AppIcon.appiconset/Contents.json
  39. 0
    0
      demo/ios/demo/Info.plist
  40. 0
    0
      demo/ios/demo/main.m
  41. 0
    0
      demo/ios/demoTests/Info.plist
  42. 2
    2
      demo/ios/demoTests/demoTests.m
  43. 1
    1
      demo/package.json
  44. 0
    3
      examples/explorer/android/app/src/main/res/values/strings.xml
  45. 0
    5
      examples/explorer/android/settings.gradle

examples/explorer/.babelrc → demo/.babelrc View File


examples/explorer/.buckconfig → demo/.buckconfig View File


examples/explorer/.flowconfig → demo/.flowconfig View File


examples/explorer/.gitattributes → demo/.gitattributes View File


examples/explorer/.gitignore → demo/.gitignore View File


examples/explorer/.watchmanconfig → demo/.watchmanconfig View File


examples/explorer/__tests__/index.android.js → demo/__tests__/index.android.js View File


examples/explorer/__tests__/index.ios.js → demo/__tests__/index.ios.js View File


examples/explorer/android/app/BUCK → demo/android/app/BUCK View File

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

examples/explorer/android/app/build.gradle → demo/android/app/build.gradle View File

@@ -87,7 +87,7 @@ android {
87 87
     buildToolsVersion "23.0.1"
88 88
 
89 89
     defaultConfig {
90
-        applicationId "com.explorer"
90
+        applicationId "com.demo"
91 91
         minSdkVersion 16
92 92
         targetSdkVersion 22
93 93
         versionCode 1
@@ -126,7 +126,7 @@ android {
126 126
 }
127 127
 
128 128
 dependencies {
129
-    compile project(':react-native-autoheightwebview')
129
+    compile project(':react-native-autoheight-webview')
130 130
     compile fileTree(dir: "libs", include: ["*.jar"])
131 131
     compile "com.android.support:appcompat-v7:23.0.1"
132 132
     compile "com.facebook.react:react-native:+"  // From node_modules

examples/explorer/android/app/proguard-rules.pro → demo/android/app/proguard-rules.pro View File


examples/explorer/android/app/src/main/AndroidManifest.xml → demo/android/app/src/main/AndroidManifest.xml View File

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

examples/explorer/android/app/src/main/java/com/explorer/MainActivity.java → demo/android/app/src/main/java/com/demo/MainActivity.java View File

@@ -1,4 +1,4 @@
1
-package com.explorer;
1
+package com.demo;
2 2
 
3 3
 import com.facebook.react.ReactActivity;
4 4
 
@@ -10,6 +10,6 @@ public class MainActivity extends ReactActivity {
10 10
      */
11 11
     @Override
12 12
     protected String getMainComponentName() {
13
-        return "explorer";
13
+        return "demo";
14 14
     }
15 15
 }

examples/explorer/android/app/src/main/java/com/explorer/MainApplication.java → demo/android/app/src/main/java/com/demo/MainApplication.java View File

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

examples/explorer/android/app/src/main/res/mipmap-hdpi/ic_launcher.png → demo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png View File


examples/explorer/android/app/src/main/res/mipmap-mdpi/ic_launcher.png → demo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png View File


examples/explorer/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png → demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png View File


examples/explorer/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png → demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png View File


+ 3
- 0
demo/android/app/src/main/res/values/strings.xml View File

@@ -0,0 +1,3 @@
1
+<resources>
2
+    <string name="app_name">demo</string>
3
+</resources>

examples/explorer/android/app/src/main/res/values/styles.xml → demo/android/app/src/main/res/values/styles.xml View File


examples/explorer/android/build.gradle → demo/android/build.gradle View File


examples/explorer/android/gradle.properties → demo/android/gradle.properties View File


examples/explorer/android/gradle/wrapper/gradle-wrapper.jar → demo/android/gradle/wrapper/gradle-wrapper.jar View File


examples/explorer/android/gradle/wrapper/gradle-wrapper.properties → demo/android/gradle/wrapper/gradle-wrapper.properties View File


examples/explorer/android/gradlew → demo/android/gradlew View File


examples/explorer/android/gradlew.bat → demo/android/gradlew.bat View File


examples/explorer/android/keystores/BUCK → demo/android/keystores/BUCK View File


examples/explorer/android/keystores/debug.keystore.properties → demo/android/keystores/debug.keystore.properties View File


+ 5
- 0
demo/android/settings.gradle View File

@@ -0,0 +1,5 @@
1
+rootProject.name = 'demo'
2
+include ':react-native-autoheight-webview'
3
+project(':react-native-autoheight-webview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-autoheight-webview/android')
4
+
5
+include ':app'

examples/explorer/explorer.js → demo/explorer.js View File


examples/explorer/index.android.js → demo/index.android.js View File

@@ -6,4 +6,4 @@ import { AppRegistry } from 'react-native';
6 6
 
7 7
 import Explorer from './explorer';
8 8
 
9
-AppRegistry.registerComponent('explorer', () => Explorer);
9
+AppRegistry.registerComponent('demo', () => Explorer);

examples/explorer/index.ios.js → demo/index.ios.js View File

@@ -6,4 +6,4 @@ import { AppRegistry } from 'react-native';
6 6
 
7 7
 import Explorer from './explorer';
8 8
 
9
-AppRegistry.registerComponent('explorer', () => Explorer);
9
+AppRegistry.registerComponent('demo', () => Explorer);

examples/explorer/ios/explorer.xcodeproj/project.pbxproj → demo/ios/demo.xcodeproj/project.pbxproj View File

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

examples/explorer/ios/explorer.xcodeproj/xcshareddata/xcschemes/explorer.xcscheme → demo/ios/demo.xcodeproj/xcshareddata/xcschemes/demo.xcscheme View File

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

examples/explorer/ios/explorer/AppDelegate.h → demo/ios/demo/AppDelegate.h View File


examples/explorer/ios/explorer/AppDelegate.m → demo/ios/demo/AppDelegate.m View File

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

examples/explorer/ios/explorer/Base.lproj/LaunchScreen.xib → demo/ios/demo/Base.lproj/LaunchScreen.xib View File

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

examples/explorer/ios/explorer/Images.xcassets/AppIcon.appiconset/Contents.json → demo/ios/demo/Images.xcassets/AppIcon.appiconset/Contents.json View File


examples/explorer/ios/explorer/Info.plist → demo/ios/demo/Info.plist View File


examples/explorer/ios/explorer/main.m → demo/ios/demo/main.m View File


examples/explorer/ios/explorerTests/Info.plist → demo/ios/demoTests/Info.plist View File


examples/explorer/ios/explorerTests/explorerTests.m → demo/ios/demoTests/demoTests.m View File

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

examples/explorer/package.json → demo/package.json View File

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

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

@@ -1,3 +0,0 @@
1
-<resources>
2
-    <string name="app_name">explorer</string>
3
-</resources>

+ 0
- 5
examples/explorer/android/settings.gradle View File

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