Daniel Zlotin 8 anni fa
parent
commit
2c54470c34
33 ha cambiato i file con 165 aggiunte e 641 eliminazioni
  1. 10
    10
      playground/commands.json
  2. 1
    1
      playground/index.android.js
  3. 1
    1
      playground/index.ios.js
  4. 0
    115
      playground/ios/example.xcodeproj/xcshareddata/xcschemes/example_Detox.xcscheme
  5. 0
    105
      playground/ios/example.xcodeproj/xcshareddata/xcschemes/example_release.xcscheme
  6. 52
    254
      playground/ios/playground.xcodeproj/project.pbxproj
  7. 18
    18
      playground/ios/playground.xcodeproj/xcshareddata/xcschemes/playground.xcscheme
  8. 0
    0
      playground/ios/playground/AppDelegate.h
  9. 1
    1
      playground/ios/playground/AppDelegate.m
  10. 10
    6
      playground/ios/playground/Base.lproj/LaunchScreen.xib
  11. 10
    0
      playground/ios/playground/Images.xcassets/AppIcon.appiconset/Contents.json
  12. 8
    10
      playground/ios/playground/Info.plist
  13. 0
    0
      playground/ios/playground/main.m
  14. 1
    1
      playground/ios/playgroundTests/Info.plist
  15. 0
    1
      playground/ios/playgroundTests/RNNViewControllerTests.m
  16. 2
    2
      playground/ios/playgroundTests/playgroundTests.m
  17. 4
    5
      playground/package.json
  18. 5
    0
      playground/scripts/postinstall.js
  19. 4
    4
      playground/src/__screens/CollapsingTopBarScreen.android.js
  20. 8
    8
      playground/src/__screens/FirstTabScreen.js
  21. 0
    0
      playground/src/__screens/LightBoxScreen.js
  22. 2
    2
      playground/src/__screens/ModalScreen.js
  23. 0
    0
      playground/src/__screens/NotificationScreen.js
  24. 3
    3
      playground/src/__screens/PushedScreen.js
  25. 1
    1
      playground/src/__screens/SecondTabScreen.js
  26. 1
    1
      playground/src/__screens/SideMenu.js
  27. 7
    7
      playground/src/__screens/StyledScreen.js
  28. 0
    0
      playground/src/__screens/index.android.js
  29. 0
    0
      playground/src/__screens/index.ios.js
  30. 7
    82
      playground/src/app.js
  31. 3
    0
      playground/src/index.js
  32. 3
    2
      src/index.js
  33. 3
    1
      src/index.test.js

+ 10
- 10
playground/commands.json Vedi File

@@ -1,26 +1,26 @@
1 1
 {
2 2
   "singleScreenApp": {
3
-    "screen": {
3
+    "container": {
4 4
       "key": "com.example.FirstTabScreen"
5 5
     }
6 6
   },
7 7
   "tabBasedApp": {
8 8
     "tabs": [{
9
-             "screen": {
9
+             "container": {
10 10
               "key": "com.example.FirstTabScreen"
11 11
              }
12 12
              }, {
13
-             "screen": {
13
+             "container": {
14 14
               "key": "com.example.SecondTabScreen"
15 15
              }
16 16
              }, {
17
-             "screen": {
17
+             "container": {
18 18
               "key": "com.example.FirstTabScreen"
19 19
              }
20 20
              }]
21 21
   },
22 22
   "singleWithLeftSideMenu": {
23
-    "screen": {
23
+    "container": {
24 24
       "key": "com.example.MyScreen"
25 25
     },
26 26
     "sideMenu": {
@@ -30,7 +30,7 @@
30 30
     }
31 31
   },
32 32
   "singleWithRightSideMenu": {
33
-    "screen": {
33
+    "container": {
34 34
       "key": "com.example.MyScreen"
35 35
     },
36 36
     "sideMenu": {
@@ -40,7 +40,7 @@
40 40
     }
41 41
   },
42 42
   "singleWithBothMenus": {
43
-    "screen": {
43
+    "container": {
44 44
       "key": "com.example.MyScreen"
45 45
     },
46 46
     "sideMenu": {
@@ -54,15 +54,15 @@
54 54
   },
55 55
   "tabBasedWithSideMenu": {
56 56
     "tabs": [{
57
-             "screen": {
57
+             "container": {
58 58
               "key": "com.example.FirstTabScreen"
59 59
              }
60 60
              }, {
61
-             "screen": {
61
+             "container": {
62 62
               "key": "com.example.SecondTabScreen"
63 63
              }
64 64
              }, {
65
-             "screen": {
65
+             "container": {
66 66
               "key": "com.example.FirstTabScreen"
67 67
              }
68 68
              }],

+ 1
- 1
playground/index.android.js Vedi File

@@ -1 +1 @@
1
-import App from './src/app';
1
+require('./src/index');

+ 1
- 1
playground/index.ios.js Vedi File

@@ -1 +1 @@
1
-import App from './src/app';
1
+require('./src/index');

+ 0
- 115
playground/ios/example.xcodeproj/xcshareddata/xcschemes/example_Detox.xcscheme Vedi File

@@ -1,115 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Scheme
3
-   LastUpgradeVersion = "0620"
4
-   version = "1.3">
5
-   <BuildAction
6
-      parallelizeBuildables = "YES"
7
-      buildImplicitDependencies = "YES">
8
-      <BuildActionEntries>
9
-         <BuildActionEntry
10
-            buildForTesting = "YES"
11
-            buildForRunning = "YES"
12
-            buildForProfiling = "YES"
13
-            buildForArchiving = "YES"
14
-            buildForAnalyzing = "YES">
15
-            <BuildableReference
16
-               BuildableIdentifier = "primary"
17
-               BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
18
-               BuildableName = "example.app"
19
-               BlueprintName = "example"
20
-               ReferencedContainer = "container:example.xcodeproj">
21
-            </BuildableReference>
22
-         </BuildActionEntry>
23
-         <BuildActionEntry
24
-            buildForTesting = "YES"
25
-            buildForRunning = "YES"
26
-            buildForProfiling = "NO"
27
-            buildForArchiving = "NO"
28
-            buildForAnalyzing = "YES">
29
-            <BuildableReference
30
-               BuildableIdentifier = "primary"
31
-               BlueprintIdentifier = "00E356ED1AD99517003FC87E"
32
-               BuildableName = "exampleTests.xctest"
33
-               BlueprintName = "exampleTests"
34
-               ReferencedContainer = "container:example.xcodeproj">
35
-            </BuildableReference>
36
-         </BuildActionEntry>
37
-      </BuildActionEntries>
38
-   </BuildAction>
39
-   <TestAction
40
-      buildConfiguration = "Debug"
41
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43
-      shouldUseLaunchSchemeArgsEnv = "YES">
44
-      <Testables>
45
-         <TestableReference
46
-            skipped = "NO">
47
-            <BuildableReference
48
-               BuildableIdentifier = "primary"
49
-               BlueprintIdentifier = "00E356ED1AD99517003FC87E"
50
-               BuildableName = "exampleTests.xctest"
51
-               BlueprintName = "exampleTests"
52
-               ReferencedContainer = "container:example.xcodeproj">
53
-            </BuildableReference>
54
-         </TestableReference>
55
-      </Testables>
56
-      <MacroExpansion>
57
-         <BuildableReference
58
-            BuildableIdentifier = "primary"
59
-            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
60
-            BuildableName = "example.app"
61
-            BlueprintName = "example"
62
-            ReferencedContainer = "container:example.xcodeproj">
63
-         </BuildableReference>
64
-      </MacroExpansion>
65
-      <AdditionalOptions>
66
-      </AdditionalOptions>
67
-   </TestAction>
68
-   <LaunchAction
69
-      buildConfiguration = "Debug_Detox"
70
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
71
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
72
-      launchStyle = "0"
73
-      useCustomWorkingDirectory = "NO"
74
-      ignoresPersistentStateOnLaunch = "NO"
75
-      debugDocumentVersioning = "YES"
76
-      debugServiceExtension = "internal"
77
-      allowLocationSimulation = "YES">
78
-      <BuildableProductRunnable
79
-         runnableDebuggingMode = "0">
80
-         <BuildableReference
81
-            BuildableIdentifier = "primary"
82
-            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
83
-            BuildableName = "example.app"
84
-            BlueprintName = "example"
85
-            ReferencedContainer = "container:example.xcodeproj">
86
-         </BuildableReference>
87
-      </BuildableProductRunnable>
88
-      <AdditionalOptions>
89
-      </AdditionalOptions>
90
-   </LaunchAction>
91
-   <ProfileAction
92
-      buildConfiguration = "Release"
93
-      shouldUseLaunchSchemeArgsEnv = "YES"
94
-      savedToolIdentifier = ""
95
-      useCustomWorkingDirectory = "NO"
96
-      debugDocumentVersioning = "YES">
97
-      <BuildableProductRunnable
98
-         runnableDebuggingMode = "0">
99
-         <BuildableReference
100
-            BuildableIdentifier = "primary"
101
-            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
102
-            BuildableName = "example.app"
103
-            BlueprintName = "example"
104
-            ReferencedContainer = "container:example.xcodeproj">
105
-         </BuildableReference>
106
-      </BuildableProductRunnable>
107
-   </ProfileAction>
108
-   <AnalyzeAction
109
-      buildConfiguration = "Debug">
110
-   </AnalyzeAction>
111
-   <ArchiveAction
112
-      buildConfiguration = "Release"
113
-      revealArchiveInOrganizer = "YES">
114
-   </ArchiveAction>
115
-</Scheme>

+ 0
- 105
playground/ios/example.xcodeproj/xcshareddata/xcschemes/example_release.xcscheme Vedi File

@@ -1,105 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Scheme
3
-   LastUpgradeVersion = "0620"
4
-   version = "1.3">
5
-   <BuildAction
6
-      parallelizeBuildables = "YES"
7
-      buildImplicitDependencies = "YES">
8
-      <BuildActionEntries>
9
-         <BuildActionEntry
10
-            buildForTesting = "YES"
11
-            buildForRunning = "YES"
12
-            buildForProfiling = "YES"
13
-            buildForArchiving = "YES"
14
-            buildForAnalyzing = "YES">
15
-            <BuildableReference
16
-               BuildableIdentifier = "primary"
17
-               BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
18
-               BuildableName = "example.app"
19
-               BlueprintName = "example"
20
-               ReferencedContainer = "container:example.xcodeproj">
21
-            </BuildableReference>
22
-         </BuildActionEntry>
23
-         <BuildActionEntry
24
-            buildForTesting = "YES"
25
-            buildForRunning = "YES"
26
-            buildForProfiling = "NO"
27
-            buildForArchiving = "NO"
28
-            buildForAnalyzing = "YES">
29
-            <BuildableReference
30
-               BuildableIdentifier = "primary"
31
-               BlueprintIdentifier = "00E356ED1AD99517003FC87E"
32
-               BuildableName = "exampleTests.xctest"
33
-               BlueprintName = "exampleTests"
34
-               ReferencedContainer = "container:example.xcodeproj">
35
-            </BuildableReference>
36
-         </BuildActionEntry>
37
-      </BuildActionEntries>
38
-   </BuildAction>
39
-   <TestAction
40
-      buildConfiguration = "Release"
41
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43
-      shouldUseLaunchSchemeArgsEnv = "YES">
44
-      <Testables>
45
-      </Testables>
46
-      <MacroExpansion>
47
-         <BuildableReference
48
-            BuildableIdentifier = "primary"
49
-            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
50
-            BuildableName = "example.app"
51
-            BlueprintName = "example"
52
-            ReferencedContainer = "container:example.xcodeproj">
53
-         </BuildableReference>
54
-      </MacroExpansion>
55
-      <AdditionalOptions>
56
-      </AdditionalOptions>
57
-   </TestAction>
58
-   <LaunchAction
59
-      buildConfiguration = "Release"
60
-      selectedDebuggerIdentifier = ""
61
-      selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
62
-      launchStyle = "0"
63
-      useCustomWorkingDirectory = "NO"
64
-      ignoresPersistentStateOnLaunch = "NO"
65
-      debugDocumentVersioning = "YES"
66
-      debugServiceExtension = "internal"
67
-      allowLocationSimulation = "YES">
68
-      <BuildableProductRunnable
69
-         runnableDebuggingMode = "0">
70
-         <BuildableReference
71
-            BuildableIdentifier = "primary"
72
-            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
73
-            BuildableName = "example.app"
74
-            BlueprintName = "example"
75
-            ReferencedContainer = "container:example.xcodeproj">
76
-         </BuildableReference>
77
-      </BuildableProductRunnable>
78
-      <AdditionalOptions>
79
-      </AdditionalOptions>
80
-   </LaunchAction>
81
-   <ProfileAction
82
-      buildConfiguration = "Release"
83
-      shouldUseLaunchSchemeArgsEnv = "YES"
84
-      savedToolIdentifier = ""
85
-      useCustomWorkingDirectory = "NO"
86
-      debugDocumentVersioning = "YES">
87
-      <BuildableProductRunnable
88
-         runnableDebuggingMode = "0">
89
-         <BuildableReference
90
-            BuildableIdentifier = "primary"
91
-            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
92
-            BuildableName = "example.app"
93
-            BlueprintName = "example"
94
-            ReferencedContainer = "container:example.xcodeproj">
95
-         </BuildableReference>
96
-      </BuildableProductRunnable>
97
-   </ProfileAction>
98
-   <AnalyzeAction
99
-      buildConfiguration = "Release">
100
-   </AnalyzeAction>
101
-   <ArchiveAction
102
-      buildConfiguration = "Release"
103
-      revealArchiveInOrganizer = "YES">
104
-   </ArchiveAction>
105
-</Scheme>

playground/ios/example.xcodeproj/project.pbxproj → playground/ios/playground.xcodeproj/project.pbxproj Vedi 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 /* exampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* exampleTests.m */; };
15
+		00E356F31AD99517003FC87E /* playgroundTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* playgroundTests.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 */; };
@@ -21,9 +21,7 @@
21 21
 		13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
22 22
 		13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
23 23
 		146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
24
-		263617451E1151D300D88A13 /* commands.json in Resources */ = {isa = PBXBuildFile; fileRef = 2636F1D51E114FF5007ABB09 /* commands.json */; };
25 24
 		2636F1CD1E11309B007ABB09 /* RNNViewControllerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2636F1CC1E11309B007ABB09 /* RNNViewControllerTests.m */; };
26
-		2636F1D61E114FF5007ABB09 /* commands.json in Resources */ = {isa = PBXBuildFile; fileRef = 2636F1D51E114FF5007ABB09 /* commands.json */; };
27 25
 		2647D65F1DB175C200B23722 /* libReactNativeNavigation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2647D65E1DB175B300B23722 /* libReactNativeNavigation.a */; };
28 26
 		7B9B39861DEB4091004A6281 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B9B39631DEB4076004A6281 /* libRCTAnimation.a */; };
29 27
 		832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
@@ -180,27 +178,25 @@
180 178
 /* End PBXContainerItemProxy section */
181 179
 
182 180
 /* Begin PBXFileReference section */
183
-		008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = "<group>"; };
184 181
 		00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = "<group>"; };
185 182
 		00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = "<group>"; };
186 183
 		00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = "<group>"; };
187 184
 		00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = "<group>"; };
188 185
 		00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = "<group>"; };
189
-		00E356EE1AD99517003FC87E /* exampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = exampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
186
+		00E356EE1AD99517003FC87E /* playgroundTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = playgroundTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
190 187
 		00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
191
-		00E356F21AD99517003FC87E /* exampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = exampleTests.m; sourceTree = "<group>"; };
188
+		00E356F21AD99517003FC87E /* playgroundTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = playgroundTests.m; sourceTree = "<group>"; };
192 189
 		139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = "<group>"; };
193 190
 		139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = "<group>"; };
194
-		13B07F961A680F5B00A75B9A /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; };
195
-		13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = example/AppDelegate.h; sourceTree = "<group>"; };
196
-		13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = example/AppDelegate.m; sourceTree = "<group>"; };
191
+		13B07F961A680F5B00A75B9A /* playground.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = playground.app; sourceTree = BUILT_PRODUCTS_DIR; };
192
+		13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
193
+		13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
197 194
 		13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
198
-		13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = example/Images.xcassets; sourceTree = "<group>"; };
199
-		13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = example/Info.plist; sourceTree = "<group>"; };
200
-		13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = example/main.m; sourceTree = "<group>"; };
195
+		13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
196
+		13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
197
+		13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
201 198
 		146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = "<group>"; };
202 199
 		2636F1CC1E11309B007ABB09 /* RNNViewControllerTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNViewControllerTests.m; sourceTree = "<group>"; };
203
-		2636F1D51E114FF5007ABB09 /* commands.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = commands.json; path = "../node_modules/react-native-navigation/example/commands.json"; sourceTree = "<group>"; };
204 200
 		2647D6591DB175B300B23722 /* ReactNativeNavigation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = ReactNativeNavigation.xcodeproj; path = "../node_modules/react-native-navigation/ios/ReactNativeNavigation.xcodeproj"; sourceTree = "<group>"; };
205 201
 		78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = "<group>"; };
206 202
 		7B9B395C1DEB4076004A6281 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = "<group>"; };
@@ -279,14 +275,14 @@
279 275
 			name = Products;
280 276
 			sourceTree = "<group>";
281 277
 		};
282
-		00E356EF1AD99517003FC87E /* exampleTests */ = {
278
+		00E356EF1AD99517003FC87E /* playgroundTests */ = {
283 279
 			isa = PBXGroup;
284 280
 			children = (
285
-				00E356F21AD99517003FC87E /* exampleTests.m */,
281
+				00E356F21AD99517003FC87E /* playgroundTests.m */,
286 282
 				2636F1CC1E11309B007ABB09 /* RNNViewControllerTests.m */,
287 283
 				00E356F01AD99517003FC87E /* Supporting Files */,
288 284
 			);
289
-			path = exampleTests;
285
+			path = playgroundTests;
290 286
 			sourceTree = "<group>";
291 287
 		};
292 288
 		00E356F01AD99517003FC87E /* Supporting Files */ = {
@@ -315,11 +311,9 @@
315 311
 			name = Products;
316 312
 			sourceTree = "<group>";
317 313
 		};
318
-		13B07FAE1A68108700A75B9A /* example */ = {
314
+		13B07FAE1A68108700A75B9A /* playground */ = {
319 315
 			isa = PBXGroup;
320 316
 			children = (
321
-				2636F1D51E114FF5007ABB09 /* commands.json */,
322
-				008F07F21AC5B25A0029DE68 /* main.jsbundle */,
323 317
 				13B07FAF1A68108700A75B9A /* AppDelegate.h */,
324 318
 				13B07FB01A68108700A75B9A /* AppDelegate.m */,
325 319
 				13B07FB51A68108700A75B9A /* Images.xcassets */,
@@ -327,7 +321,7 @@
327 321
 				13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
328 322
 				13B07FB71A68108700A75B9A /* main.m */,
329 323
 			);
330
-			name = example;
324
+			path = playground;
331 325
 			sourceTree = "<group>";
332 326
 		};
333 327
 		146834001AC3E56700842450 /* Products */ = {
@@ -396,9 +390,9 @@
396 390
 		83CBB9F61A601CBA00E9B192 = {
397 391
 			isa = PBXGroup;
398 392
 			children = (
399
-				13B07FAE1A68108700A75B9A /* example */,
393
+				13B07FAE1A68108700A75B9A /* playground */,
400 394
 				832341AE1AAA6A7D00B99B32 /* Libraries */,
401
-				00E356EF1AD99517003FC87E /* exampleTests */,
395
+				00E356EF1AD99517003FC87E /* playgroundTests */,
402 396
 				83CBBA001A601CBA00E9B192 /* Products */,
403 397
 			);
404 398
 			indentWidth = 2;
@@ -408,8 +402,8 @@
408 402
 		83CBBA001A601CBA00E9B192 /* Products */ = {
409 403
 			isa = PBXGroup;
410 404
 			children = (
411
-				13B07F961A680F5B00A75B9A /* example.app */,
412
-				00E356EE1AD99517003FC87E /* exampleTests.xctest */,
405
+				13B07F961A680F5B00A75B9A /* playground.app */,
406
+				00E356EE1AD99517003FC87E /* playgroundTests.xctest */,
413 407
 			);
414 408
 			name = Products;
415 409
 			sourceTree = "<group>";
@@ -417,9 +411,9 @@
417 411
 /* End PBXGroup section */
418 412
 
419 413
 /* Begin PBXNativeTarget section */
420
-		00E356ED1AD99517003FC87E /* exampleTests */ = {
414
+		00E356ED1AD99517003FC87E /* playgroundTests */ = {
421 415
 			isa = PBXNativeTarget;
422
-			buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "exampleTests" */;
416
+			buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "playgroundTests" */;
423 417
 			buildPhases = (
424 418
 				00E356EA1AD99517003FC87E /* Sources */,
425 419
 				00E356EB1AD99517003FC87E /* Frameworks */,
@@ -430,14 +424,14 @@
430 424
 			dependencies = (
431 425
 				00E356F51AD99517003FC87E /* PBXTargetDependency */,
432 426
 			);
433
-			name = exampleTests;
427
+			name = playgroundTests;
434 428
 			productName = exampleTests;
435
-			productReference = 00E356EE1AD99517003FC87E /* exampleTests.xctest */;
429
+			productReference = 00E356EE1AD99517003FC87E /* playgroundTests.xctest */;
436 430
 			productType = "com.apple.product-type.bundle.unit-test";
437 431
 		};
438
-		13B07F861A680F5B00A75B9A /* example */ = {
432
+		13B07F861A680F5B00A75B9A /* playground */ = {
439 433
 			isa = PBXNativeTarget;
440
-			buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */;
434
+			buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "playground" */;
441 435
 			buildPhases = (
442 436
 				13B07F871A680F5B00A75B9A /* Sources */,
443 437
 				13B07F8C1A680F5B00A75B9A /* Frameworks */,
@@ -449,9 +443,9 @@
449 443
 			);
450 444
 			dependencies = (
451 445
 			);
452
-			name = example;
446
+			name = playground;
453 447
 			productName = "Hello World";
454
-			productReference = 13B07F961A680F5B00A75B9A /* example.app */;
448
+			productReference = 13B07F961A680F5B00A75B9A /* playground.app */;
455 449
 			productType = "com.apple.product-type.application";
456 450
 		};
457 451
 /* End PBXNativeTarget section */
@@ -467,9 +461,12 @@
467 461
 						CreatedOnToolsVersion = 6.2;
468 462
 						TestTargetID = 13B07F861A680F5B00A75B9A;
469 463
 					};
464
+					13B07F861A680F5B00A75B9A = {
465
+						ProvisioningStyle = Manual;
466
+					};
470 467
 				};
471 468
 			};
472
-			buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */;
469
+			buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "playground" */;
473 470
 			compatibilityVersion = "Xcode 3.2";
474 471
 			developmentRegion = English;
475 472
 			hasScannedForEncodings = 0;
@@ -532,8 +529,8 @@
532 529
 			);
533 530
 			projectRoot = "";
534 531
 			targets = (
535
-				13B07F861A680F5B00A75B9A /* example */,
536
-				00E356ED1AD99517003FC87E /* exampleTests */,
532
+				13B07F861A680F5B00A75B9A /* playground */,
533
+				00E356ED1AD99517003FC87E /* playgroundTests */,
537 534
 			);
538 535
 		};
539 536
 /* End PBXProject section */
@@ -686,7 +683,6 @@
686 683
 			isa = PBXResourcesBuildPhase;
687 684
 			buildActionMask = 2147483647;
688 685
 			files = (
689
-				2636F1D61E114FF5007ABB09 /* commands.json in Resources */,
690 686
 			);
691 687
 			runOnlyForDeploymentPostprocessing = 0;
692 688
 		};
@@ -694,7 +690,6 @@
694 690
 			isa = PBXResourcesBuildPhase;
695 691
 			buildActionMask = 2147483647;
696 692
 			files = (
697
-				263617451E1151D300D88A13 /* commands.json in Resources */,
698 693
 				13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
699 694
 				13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
700 695
 			);
@@ -738,7 +733,7 @@
738 733
 			isa = PBXSourcesBuildPhase;
739 734
 			buildActionMask = 2147483647;
740 735
 			files = (
741
-				00E356F31AD99517003FC87E /* exampleTests.m in Sources */,
736
+				00E356F31AD99517003FC87E /* playgroundTests.m in Sources */,
742 737
 				2636F1CD1E11309B007ABB09 /* RNNViewControllerTests.m in Sources */,
743 738
 			);
744 739
 			runOnlyForDeploymentPostprocessing = 0;
@@ -757,7 +752,7 @@
757 752
 /* Begin PBXTargetDependency section */
758 753
 		00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
759 754
 			isa = PBXTargetDependency;
760
-			target = 13B07F861A680F5B00A75B9A /* example */;
755
+			target = 13B07F861A680F5B00A75B9A /* playground */;
761 756
 			targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
762 757
 		};
763 758
 /* End PBXTargetDependency section */
@@ -769,7 +764,6 @@
769 764
 				13B07FB21A68108700A75B9A /* Base */,
770 765
 			);
771 766
 			name = LaunchScreen.xib;
772
-			path = example;
773 767
 			sourceTree = "<group>";
774 768
 		};
775 769
 /* End PBXVariantGroup section */
@@ -793,11 +787,11 @@
793 787
 					"$(SRCROOT)/../node_modules/react-native/React/**",
794 788
 					"$(SRCROOT)/../node_modules/react-native-navigation/ios/**",
795 789
 				);
796
-				INFOPLIST_FILE = exampleTests/Info.plist;
790
+				INFOPLIST_FILE = playgroundTests/Info.plist;
797 791
 				IPHONEOS_DEPLOYMENT_TARGET = 8.2;
798 792
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
799 793
 				PRODUCT_NAME = "$(TARGET_NAME)";
800
-				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/example";
794
+				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/playground.app/playground";
801 795
 			};
802 796
 			name = Debug;
803 797
 		};
@@ -816,11 +810,11 @@
816 810
 					"$(SRCROOT)/../node_modules/react-native/React/**",
817 811
 					"$(SRCROOT)/../node_modules/react-native-navigation/ios/**",
818 812
 				);
819
-				INFOPLIST_FILE = exampleTests/Info.plist;
813
+				INFOPLIST_FILE = playgroundTests/Info.plist;
820 814
 				IPHONEOS_DEPLOYMENT_TARGET = 8.2;
821 815
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
822 816
 				PRODUCT_NAME = "$(TARGET_NAME)";
823
-				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/example";
817
+				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/playground.app/playground";
824 818
 			};
825 819
 			name = Release;
826 820
 		};
@@ -829,20 +823,22 @@
829 823
 			buildSettings = {
830 824
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
831 825
 				DEAD_CODE_STRIPPING = NO;
826
+				DEVELOPMENT_TEAM = "";
832 827
 				HEADER_SEARCH_PATHS = (
833 828
 					"$(inherited)",
834 829
 					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
835 830
 					"$(SRCROOT)/../node_modules/react-native/React/**",
836 831
 					"$(SRCROOT)/../node_modules/react-native-navigation/ios/**",
837 832
 				);
838
-				INFOPLIST_FILE = example/Info.plist;
833
+				INFOPLIST_FILE = playground/Info.plist;
839 834
 				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
840 835
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
841 836
 				OTHER_LDFLAGS = (
842 837
 					"-ObjC",
843 838
 					"-l\"c++\"",
844 839
 				);
845
-				PRODUCT_NAME = example;
840
+				PRODUCT_BUNDLE_IDENTIFIER = com.reactnativenavigation.playground;
841
+				PRODUCT_NAME = playground;
846 842
 			};
847 843
 			name = Debug;
848 844
 		};
@@ -850,96 +846,25 @@
850 846
 			isa = XCBuildConfiguration;
851 847
 			buildSettings = {
852 848
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
849
+				DEVELOPMENT_TEAM = "";
853 850
 				HEADER_SEARCH_PATHS = (
854 851
 					"$(inherited)",
855 852
 					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
856 853
 					"$(SRCROOT)/../node_modules/react-native/React/**",
857 854
 					"$(SRCROOT)/../node_modules/react-native-navigation/ios/**",
858 855
 				);
859
-				INFOPLIST_FILE = example/Info.plist;
856
+				INFOPLIST_FILE = playground/Info.plist;
860 857
 				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
861 858
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
862 859
 				OTHER_LDFLAGS = (
863 860
 					"-ObjC",
864 861
 					"-l\"c++\"",
865 862
 				);
866
-				PRODUCT_NAME = example;
863
+				PRODUCT_BUNDLE_IDENTIFIER = com.reactnativenavigation.playground;
864
+				PRODUCT_NAME = playground;
867 865
 			};
868 866
 			name = Release;
869 867
 		};
870
-		2C24A1398D388E120DDC2CA1 /* Debug_Detox */ = {
871
-			isa = XCBuildConfiguration;
872
-			buildSettings = {
873
-				ALWAYS_SEARCH_USER_PATHS = NO;
874
-				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
875
-				CLANG_CXX_LIBRARY = "libc++";
876
-				CLANG_ENABLE_MODULES = YES;
877
-				CLANG_ENABLE_OBJC_ARC = YES;
878
-				CLANG_WARN_BOOL_CONVERSION = YES;
879
-				CLANG_WARN_CONSTANT_CONVERSION = YES;
880
-				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
881
-				CLANG_WARN_EMPTY_BODY = YES;
882
-				CLANG_WARN_ENUM_CONVERSION = YES;
883
-				CLANG_WARN_INT_CONVERSION = YES;
884
-				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
885
-				CLANG_WARN_UNREACHABLE_CODE = YES;
886
-				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
887
-				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
888
-				COPY_PHASE_STRIP = NO;
889
-				ENABLE_STRICT_OBJC_MSGSEND = YES;
890
-				GCC_C_LANGUAGE_STANDARD = gnu99;
891
-				GCC_DYNAMIC_NO_PIC = NO;
892
-				GCC_OPTIMIZATION_LEVEL = 0;
893
-				GCC_PREPROCESSOR_DEFINITIONS = (
894
-					"DEBUG=1",
895
-					"$(inherited)",
896
-				);
897
-				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
898
-				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
899
-				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
900
-				GCC_WARN_UNDECLARED_SELECTOR = YES;
901
-				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
902
-				GCC_WARN_UNUSED_FUNCTION = YES;
903
-				GCC_WARN_UNUSED_VARIABLE = YES;
904
-				HEADER_SEARCH_PATHS = (
905
-					"$(inherited)",
906
-					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
907
-					"$(SRCROOT)/../node_modules/react-native/React/**",
908
-				);
909
-				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
910
-				MTL_ENABLE_DEBUG_INFO = YES;
911
-				ONLY_ACTIVE_ARCH = YES;
912
-				OTHER_LDFLAGS = "";
913
-				SDKROOT = iphoneos;
914
-			};
915
-			name = Debug_Detox;
916
-		};
917
-		5627D4C51CEC610E1744267F /* Debug_Detox */ = {
918
-			isa = XCBuildConfiguration;
919
-			buildSettings = {
920
-				BUNDLE_LOADER = "$(TEST_HOST)";
921
-				FRAMEWORK_SEARCH_PATHS = (
922
-					"$(SDKROOT)/Developer/Library/Frameworks",
923
-					"$(inherited)",
924
-				);
925
-				GCC_PREPROCESSOR_DEFINITIONS = (
926
-					"DEBUG=1",
927
-					"$(inherited)",
928
-				);
929
-				HEADER_SEARCH_PATHS = (
930
-					"$(inherited)",
931
-					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
932
-					"$(SRCROOT)/../node_modules/react-native/React/**",
933
-					"$(SRCROOT)/../node_modules/react-native-navigation/ios/**",
934
-				);
935
-				INFOPLIST_FILE = exampleTests/Info.plist;
936
-				IPHONEOS_DEPLOYMENT_TARGET = 8.2;
937
-				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
938
-				PRODUCT_NAME = "$(TARGET_NAME)";
939
-				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/example";
940
-			};
941
-			name = Debug_Detox;
942
-		};
943 868
 		83CBBA201A601CBA00E9B192 /* Debug */ = {
944 869
 			isa = XCBuildConfiguration;
945 870
 			buildSettings = {
@@ -1028,162 +953,35 @@
1028 953
 			};
1029 954
 			name = Release;
1030 955
 		};
1031
-		96FA810D67E56FD9D43906E6 /* Release_Detox */ = {
1032
-			isa = XCBuildConfiguration;
1033
-			buildSettings = {
1034
-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1035
-				DEPLOY_DETOX_FRAMEWORK = YES;
1036
-				FRAMEWORK_SEARCH_PATHS = (
1037
-					"$(inherited)",
1038
-					"$(PROJECT_DIR)/../node_modules/detox",
1039
-				);
1040
-				HEADER_SEARCH_PATHS = (
1041
-					"$(inherited)",
1042
-					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
1043
-					"$(SRCROOT)/../node_modules/react-native/React/**",
1044
-					"$(SRCROOT)/../node_modules/react-native-navigation/ios/**",
1045
-				);
1046
-				INFOPLIST_FILE = example/Info.plist;
1047
-				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1048
-				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1049
-				OTHER_LDFLAGS = (
1050
-					"-ObjC",
1051
-					"-l\"c++\"",
1052
-					"-framework",
1053
-					Detox,
1054
-				);
1055
-				PRODUCT_NAME = example;
1056
-			};
1057
-			name = Release_Detox;
1058
-		};
1059
-		BEB8EFA9FD7A9DCE32773C1C /* Debug_Detox */ = {
1060
-			isa = XCBuildConfiguration;
1061
-			buildSettings = {
1062
-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1063
-				DEAD_CODE_STRIPPING = NO;
1064
-				DEPLOY_DETOX_FRAMEWORK = YES;
1065
-				FRAMEWORK_SEARCH_PATHS = (
1066
-					"$(inherited)",
1067
-					"$(PROJECT_DIR)/../node_modules/detox",
1068
-				);
1069
-				HEADER_SEARCH_PATHS = (
1070
-					"$(inherited)",
1071
-					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
1072
-					"$(SRCROOT)/../node_modules/react-native/React/**",
1073
-					"$(SRCROOT)/../node_modules/react-native-navigation/ios/**",
1074
-				);
1075
-				INFOPLIST_FILE = example/Info.plist;
1076
-				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1077
-				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1078
-				OTHER_LDFLAGS = (
1079
-					"-ObjC",
1080
-					"-l\"c++\"",
1081
-					"-framework",
1082
-					Detox,
1083
-				);
1084
-				PRODUCT_NAME = example;
1085
-			};
1086
-			name = Debug_Detox;
1087
-		};
1088
-		E53E50BD43A56CF67FAAD3A5 /* Release_Detox */ = {
1089
-			isa = XCBuildConfiguration;
1090
-			buildSettings = {
1091
-				BUNDLE_LOADER = "$(TEST_HOST)";
1092
-				COPY_PHASE_STRIP = NO;
1093
-				FRAMEWORK_SEARCH_PATHS = (
1094
-					"$(SDKROOT)/Developer/Library/Frameworks",
1095
-					"$(inherited)",
1096
-				);
1097
-				HEADER_SEARCH_PATHS = (
1098
-					"$(inherited)",
1099
-					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
1100
-					"$(SRCROOT)/../node_modules/react-native/React/**",
1101
-					"$(SRCROOT)/../node_modules/react-native-navigation/ios/**",
1102
-				);
1103
-				INFOPLIST_FILE = exampleTests/Info.plist;
1104
-				IPHONEOS_DEPLOYMENT_TARGET = 8.2;
1105
-				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1106
-				PRODUCT_NAME = "$(TARGET_NAME)";
1107
-				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/example";
1108
-			};
1109
-			name = Release_Detox;
1110
-		};
1111
-		EAA4DC359BE7739594666868 /* Release_Detox */ = {
1112
-			isa = XCBuildConfiguration;
1113
-			buildSettings = {
1114
-				ALWAYS_SEARCH_USER_PATHS = NO;
1115
-				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1116
-				CLANG_CXX_LIBRARY = "libc++";
1117
-				CLANG_ENABLE_MODULES = YES;
1118
-				CLANG_ENABLE_OBJC_ARC = YES;
1119
-				CLANG_WARN_BOOL_CONVERSION = YES;
1120
-				CLANG_WARN_CONSTANT_CONVERSION = YES;
1121
-				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1122
-				CLANG_WARN_EMPTY_BODY = YES;
1123
-				CLANG_WARN_ENUM_CONVERSION = YES;
1124
-				CLANG_WARN_INT_CONVERSION = YES;
1125
-				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1126
-				CLANG_WARN_UNREACHABLE_CODE = YES;
1127
-				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1128
-				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1129
-				COPY_PHASE_STRIP = YES;
1130
-				ENABLE_NS_ASSERTIONS = NO;
1131
-				ENABLE_STRICT_OBJC_MSGSEND = YES;
1132
-				GCC_C_LANGUAGE_STANDARD = gnu99;
1133
-				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1134
-				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1135
-				GCC_WARN_UNDECLARED_SELECTOR = YES;
1136
-				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1137
-				GCC_WARN_UNUSED_FUNCTION = YES;
1138
-				GCC_WARN_UNUSED_VARIABLE = YES;
1139
-				HEADER_SEARCH_PATHS = (
1140
-					"$(inherited)",
1141
-					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
1142
-					"$(SRCROOT)/../node_modules/react-native/React/**",
1143
-				);
1144
-				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1145
-				MTL_ENABLE_DEBUG_INFO = NO;
1146
-				OTHER_LDFLAGS = "";
1147
-				SDKROOT = iphoneos;
1148
-				VALIDATE_PRODUCT = YES;
1149
-			};
1150
-			name = Release_Detox;
1151
-		};
1152 956
 /* End XCBuildConfiguration section */
1153 957
 
1154 958
 /* Begin XCConfigurationList section */
1155
-		00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "exampleTests" */ = {
959
+		00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "playgroundTests" */ = {
1156 960
 			isa = XCConfigurationList;
1157 961
 			buildConfigurations = (
1158 962
 				00E356F61AD99517003FC87E /* Debug */,
1159 963
 				00E356F71AD99517003FC87E /* Release */,
1160
-				5627D4C51CEC610E1744267F /* Debug_Detox */,
1161
-				E53E50BD43A56CF67FAAD3A5 /* Release_Detox */,
1162 964
 			);
1163 965
 			defaultConfigurationIsVisible = 0;
1164
-			defaultConfigurationName = Release;
966
+			defaultConfigurationName = Debug;
1165 967
 		};
1166
-		13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */ = {
968
+		13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "playground" */ = {
1167 969
 			isa = XCConfigurationList;
1168 970
 			buildConfigurations = (
1169 971
 				13B07F941A680F5B00A75B9A /* Debug */,
1170 972
 				13B07F951A680F5B00A75B9A /* Release */,
1171
-				BEB8EFA9FD7A9DCE32773C1C /* Debug_Detox */,
1172
-				96FA810D67E56FD9D43906E6 /* Release_Detox */,
1173 973
 			);
1174 974
 			defaultConfigurationIsVisible = 0;
1175
-			defaultConfigurationName = Release;
975
+			defaultConfigurationName = Debug;
1176 976
 		};
1177
-		83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */ = {
977
+		83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "playground" */ = {
1178 978
 			isa = XCConfigurationList;
1179 979
 			buildConfigurations = (
1180 980
 				83CBBA201A601CBA00E9B192 /* Debug */,
1181 981
 				83CBBA211A601CBA00E9B192 /* Release */,
1182
-				2C24A1398D388E120DDC2CA1 /* Debug_Detox */,
1183
-				EAA4DC359BE7739594666868 /* Release_Detox */,
1184 982
 			);
1185 983
 			defaultConfigurationIsVisible = 0;
1186
-			defaultConfigurationName = Release;
984
+			defaultConfigurationName = Debug;
1187 985
 		};
1188 986
 /* End XCConfigurationList section */
1189 987
 	};

playground/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme → playground/ios/playground.xcodeproj/xcshareddata/xcschemes/playground.xcscheme Vedi File

@@ -15,9 +15,9 @@
15 15
             <BuildableReference
16 16
                BuildableIdentifier = "primary"
17 17
                BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
18
-               BuildableName = "example.app"
19
-               BlueprintName = "example"
20
-               ReferencedContainer = "container:example.xcodeproj">
18
+               BuildableName = "playground.app"
19
+               BlueprintName = "playground"
20
+               ReferencedContainer = "container:playground.xcodeproj">
21 21
             </BuildableReference>
22 22
          </BuildActionEntry>
23 23
          <BuildActionEntry
@@ -29,9 +29,9 @@
29 29
             <BuildableReference
30 30
                BuildableIdentifier = "primary"
31 31
                BlueprintIdentifier = "00E356ED1AD99517003FC87E"
32
-               BuildableName = "exampleTests.xctest"
33
-               BlueprintName = "exampleTests"
34
-               ReferencedContainer = "container:example.xcodeproj">
32
+               BuildableName = "playgroundTests.xctest"
33
+               BlueprintName = "playgroundTests"
34
+               ReferencedContainer = "container:playground.xcodeproj">
35 35
             </BuildableReference>
36 36
          </BuildActionEntry>
37 37
       </BuildActionEntries>
@@ -47,9 +47,9 @@
47 47
             <BuildableReference
48 48
                BuildableIdentifier = "primary"
49 49
                BlueprintIdentifier = "00E356ED1AD99517003FC87E"
50
-               BuildableName = "exampleTests.xctest"
51
-               BlueprintName = "exampleTests"
52
-               ReferencedContainer = "container:example.xcodeproj">
50
+               BuildableName = "playgroundTests.xctest"
51
+               BlueprintName = "playgroundTests"
52
+               ReferencedContainer = "container:playground.xcodeproj">
53 53
             </BuildableReference>
54 54
          </TestableReference>
55 55
       </Testables>
@@ -57,9 +57,9 @@
57 57
          <BuildableReference
58 58
             BuildableIdentifier = "primary"
59 59
             BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
60
-            BuildableName = "example.app"
61
-            BlueprintName = "example"
62
-            ReferencedContainer = "container:example.xcodeproj">
60
+            BuildableName = "playground.app"
61
+            BlueprintName = "playground"
62
+            ReferencedContainer = "container:playground.xcodeproj">
63 63
          </BuildableReference>
64 64
       </MacroExpansion>
65 65
       <AdditionalOptions>
@@ -80,9 +80,9 @@
80 80
          <BuildableReference
81 81
             BuildableIdentifier = "primary"
82 82
             BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
83
-            BuildableName = "example.app"
84
-            BlueprintName = "example"
85
-            ReferencedContainer = "container:example.xcodeproj">
83
+            BuildableName = "playground.app"
84
+            BlueprintName = "playground"
85
+            ReferencedContainer = "container:playground.xcodeproj">
86 86
          </BuildableReference>
87 87
       </BuildableProductRunnable>
88 88
       <AdditionalOptions>
@@ -99,9 +99,9 @@
99 99
          <BuildableReference
100 100
             BuildableIdentifier = "primary"
101 101
             BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
102
-            BuildableName = "example.app"
103
-            BlueprintName = "example"
104
-            ReferencedContainer = "container:example.xcodeproj">
102
+            BuildableName = "playground.app"
103
+            BlueprintName = "playground"
104
+            ReferencedContainer = "container:playground.xcodeproj">
105 105
          </BuildableReference>
106 106
       </BuildableProductRunnable>
107 107
    </ProfileAction>

playground/ios/example/AppDelegate.h → playground/ios/playground/AppDelegate.h Vedi File


playground/ios/example/AppDelegate.m → playground/ios/playground/AppDelegate.m Vedi File

@@ -32,7 +32,7 @@
32 32
   /*
33 33
   // original RN bootstrap - remove this part
34 34
   RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
35
-                                                      moduleName:@"example"
35
+                                                      moduleName:@"playground"
36 36
                                                initialProperties:nil
37 37
                                                    launchOptions:launchOptions];
38 38
   self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];

playground/ios/example/Base.lproj/LaunchScreen.xib → playground/ios/playground/Base.lproj/LaunchScreen.xib Vedi File

@@ -1,9 +1,13 @@
1
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7702" systemVersion="14D136" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="16C67" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
3
+    <device id="retina4_7" orientation="portrait">
4
+        <adaptation id="fullscreen"/>
5
+    </device>
3 6
     <dependencies>
4 7
         <deployment identifier="iOS"/>
5
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7701"/>
8
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
6 9
         <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
10
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
7 11
     </dependencies>
8 12
     <objects>
9 13
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
@@ -18,14 +22,14 @@
18 22
                     <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
19 23
                     <nil key="highlightedColor"/>
20 24
                 </label>
21
-                <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="example" 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"/>
25
+                <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="react-native-navigation playground" textAlignment="center" lineBreakMode="middleTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
26
+                    <rect key="frame" x="20" y="118.5" width="440" height="86"/>
23 27
                     <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
24 28
                     <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
25 29
                     <nil key="highlightedColor"/>
26 30
                 </label>
27 31
             </subviews>
28
-            <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
32
+            <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
29 33
             <constraints>
30 34
                 <constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
31 35
                 <constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>

playground/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json → playground/ios/playground/Images.xcassets/AppIcon.appiconset/Contents.json Vedi File

@@ -1,5 +1,15 @@
1 1
 {
2 2
   "images" : [
3
+    {
4
+      "idiom" : "iphone",
5
+      "size" : "20x20",
6
+      "scale" : "2x"
7
+    },
8
+    {
9
+      "idiom" : "iphone",
10
+      "size" : "20x20",
11
+      "scale" : "3x"
12
+    },
3 13
     {
4 14
       "idiom" : "iphone",
5 15
       "size" : "29x29",

playground/ios/example/Info.plist → playground/ios/playground/Info.plist Vedi File

@@ -7,7 +7,7 @@
7 7
 	<key>CFBundleExecutable</key>
8 8
 	<string>$(EXECUTABLE_NAME)</string>
9 9
 	<key>CFBundleIdentifier</key>
10
-	<string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</string>
10
+	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11 11
 	<key>CFBundleInfoDictionaryVersion</key>
12 12
 	<string>6.0</string>
13 13
 	<key>CFBundleName</key>
@@ -22,6 +22,13 @@
22 22
 	<string>1</string>
23 23
 	<key>LSRequiresIPhoneOS</key>
24 24
 	<true/>
25
+	<key>NSAppTransportSecurity</key>
26
+	<dict>
27
+		<key>NSAllowsArbitraryLoads</key>
28
+		<true/>
29
+	</dict>
30
+	<key>NSLocationWhenInUseUsageDescription</key>
31
+	<string></string>
25 32
 	<key>UILaunchStoryboardName</key>
26 33
 	<string>LaunchScreen</string>
27 34
 	<key>UIRequiredDeviceCapabilities</key>
@@ -31,17 +38,8 @@
31 38
 	<key>UISupportedInterfaceOrientations</key>
32 39
 	<array>
33 40
 		<string>UIInterfaceOrientationPortrait</string>
34
-		<string>UIInterfaceOrientationLandscapeLeft</string>
35
-		<string>UIInterfaceOrientationLandscapeRight</string>
36 41
 	</array>
37 42
 	<key>UIViewControllerBasedStatusBarAppearance</key>
38 43
 	<true/>
39
-	<key>NSLocationWhenInUseUsageDescription</key>
40
-	<string></string>
41
-	<key>NSAppTransportSecurity</key>
42
-	<dict>
43
-		<key>NSAllowsArbitraryLoads</key>
44
-		<true/>
45
-	</dict>
46 44
 </dict>
47 45
 </plist>

playground/ios/example/main.m → playground/ios/playground/main.m Vedi File


playground/ios/exampleTests/Info.plist → playground/ios/playgroundTests/Info.plist Vedi File

@@ -7,7 +7,7 @@
7 7
 	<key>CFBundleExecutable</key>
8 8
 	<string>$(EXECUTABLE_NAME)</string>
9 9
 	<key>CFBundleIdentifier</key>
10
-	<string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</string>
10
+	<string>org.reactjs.native.playground.$(PRODUCT_NAME:rfc1034identifier)</string>
11 11
 	<key>CFBundleInfoDictionaryVersion</key>
12 12
 	<string>6.0</string>
13 13
 	<key>CFBundleName</key>

playground/ios/exampleTests/RNNViewControllerTests.m → playground/ios/playgroundTests/RNNViewControllerTests.m Vedi File

@@ -1,6 +1,5 @@
1 1
 //
2 2
 //  RNNViewControllerTests.m
3
-//  example
4 3
 //
5 4
 //  Created by Ran Greenberg on 26/12/2016.
6 5
 //  Copyright © 2016 Facebook. All rights reserved.

playground/ios/exampleTests/exampleTests.m → playground/ios/playgroundTests/playgroundTests.m Vedi File

@@ -18,11 +18,11 @@
18 18
 #define TIMEOUT_SECONDS 240
19 19
 #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
20 20
 
21
-@interface exampleTests : XCTestCase
21
+@interface playgroundTests : XCTestCase
22 22
 
23 23
 @end
24 24
 
25
-@implementation exampleTests
25
+@implementation playgroundTests
26 26
 
27 27
 
28 28
 

+ 4
- 5
playground/package.json Vedi File

@@ -3,11 +3,10 @@
3 3
   "version": "1.0.0",
4 4
   "private": true,
5 5
   "scripts": {
6
-    "postinstall": "rm -rf node_modules/react-native-navigation/node_modules && rm -rf node_modules/react-native-navigation/playground",
7
-    "start": "watchman watch-del-all && (adb reverse tcp:8081 tcp:8081 || true) && node node_modules/react-native/local-cli/cli.js start --reset-cache",
6
+    "postinstall": "node ./scripts/postinstall.js",
7
+    "start": "adb reverse tcp:8081 tcp:8081; watchman watch-del-all; react-native start --reset-cache",
8 8
     "xcode": "open ios/playground.xcodeproj",
9
-    "android": "cd android && ./gradlew installDebug",
10
-    "e2e": "node ./scripts/e2e.ios.js"
9
+    "android": "cd android && ./gradlew installDebug"
11 10
   },
12 11
   "dependencies": {
13 12
     "react-native": "0.38.0",
@@ -25,7 +24,7 @@
25 24
     },
26 25
     "ios-simulator": {
27 26
       "app": "ios/DerivedData/playground/Build/Products/Debug_Detox-iphonesimulator/playground.app",
28
-      "device": "iPhone 7, iOS 10.1"
27
+      "device": "iPhone 7, iOS 10.2"
29 28
     }
30 29
   }
31 30
 }

+ 5
- 0
playground/scripts/postinstall.js Vedi File

@@ -0,0 +1,5 @@
1
+const cp = (`child_process`);
2
+
3
+cp.execSync(`rm yarn.lock `);
4
+cp.execSync(`rm -rf node_modules/react-native-navigation/node_modules`);
5
+cp.execSync(`rm -rf node_modules/react-native-navigation/playground`);

playground/src/screens/CollapsingTopBarScreen.android.js → playground/src/__screens/CollapsingTopBarScreen.android.js Vedi File

@@ -79,26 +79,26 @@ export default class ThirdTabScreen extends Component {
79 79
   onPushPress() {
80 80
     this.props.navigator.push({
81 81
       title: "More",
82
-      screen: "example.PushedScreen"
82
+      container: "example.PushedScreen"
83 83
     });
84 84
   }
85 85
   onPushStyledPress() {
86 86
     this.props.navigator.push({
87 87
       title: "Styled",
88
-      screen: "example.StyledScreen"
88
+      container: "example.StyledScreen"
89 89
     });
90 90
   }
91 91
   onPushStyled2Press () {
92 92
     this.props.navigator.push({
93 93
       title: "Styled",
94 94
       titleImage: require('../../img/two.png'),
95
-      screen: "example.StyledScreen"
95
+      container: "example.StyledScreen"
96 96
     });
97 97
   }
98 98
   onModalPress() {
99 99
     this.props.navigator.showModal({
100 100
       title: "Modal",
101
-      screen: "example.ModalScreen"
101
+      container: "example.ModalScreen"
102 102
     });
103 103
   }
104 104
 

playground/src/screens/FirstTabScreen.js → playground/src/__screens/FirstTabScreen.js Vedi File

@@ -97,27 +97,27 @@ export default class FirstTabScreen extends Component {
97 97
   onPushPress() {
98 98
     this.props.navigator.push({
99 99
       title: "More",
100
-      screen: "com.example.PushedScreen"
100
+      container: "com.example.PushedScreen"
101 101
     });
102 102
   }
103 103
 
104 104
   onPushStyledPress() {
105 105
     this.props.navigator.push({
106 106
       title: "Styled",
107
-      screen: "com.example.StyledScreen"
107
+      container: "com.example.StyledScreen"
108 108
     });
109 109
   }
110 110
 
111 111
   onModalPress() {
112 112
     this.props.navigator.showModal({
113 113
       title: "Modal",
114
-      screen: "com.example.ModalScreen"
114
+      container: "com.example.ModalScreen"
115 115
     });
116 116
   }
117 117
 
118 118
   onLightBoxPress() {
119 119
     this.props.navigator.showLightBox({
120
-      screen: "com.example.LightBoxScreen",
120
+      container: "com.example.LightBoxScreen",
121 121
       style: {
122 122
         backgroundBlur: "dark"
123 123
       },
@@ -129,18 +129,18 @@ export default class FirstTabScreen extends Component {
129 129
 
130 130
   onInAppNotificationPress() {
131 131
     this.props.navigator.showInAppNotification({
132
-      screen: "com.example.NotificationScreen"
132
+      container: "com.example.NotificationScreen"
133 133
     });
134 134
   }
135 135
 
136 136
   onStartSingleScreenApp() {
137 137
     Navigation.startSingleScreenApp({
138
-      screen: {
139
-        screen: 'com.example.FirstTabScreen'
138
+      container: {
139
+        container: 'com.example.FirstTabScreen'
140 140
       },
141 141
       drawer: {
142 142
         left: {
143
-          screen: 'com.example.SideMenu'
143
+          container: 'com.example.SideMenu'
144 144
         }
145 145
       }
146 146
     });

playground/src/screens/LightBoxScreen.js → playground/src/__screens/LightBoxScreen.js Vedi File


playground/src/screens/ModalScreen.js → playground/src/__screens/ModalScreen.js Vedi File

@@ -50,13 +50,13 @@ export default class ModalScreen extends Component {
50 50
   onPushPress() {
51 51
     this.props.navigator.push({
52 52
       title: "More",
53
-      screen: "com.example.PushedScreen"
53
+      container: "com.example.PushedScreen"
54 54
     });
55 55
   }
56 56
   onPushStyledPress() {
57 57
     this.props.navigator.push({
58 58
       title: "More",
59
-      screen: "com.example.StyledScreen"
59
+      container: "com.example.StyledScreen"
60 60
     });
61 61
   }
62 62
   onClosePress() {

playground/src/screens/NotificationScreen.js → playground/src/__screens/NotificationScreen.js Vedi File


playground/src/screens/PushedScreen.js → playground/src/__screens/PushedScreen.js Vedi File

@@ -42,13 +42,13 @@ export default class PushedScreen extends Component {
42 42
   onPushPress() {
43 43
     this.props.navigator.push({
44 44
       title: "More",
45
-      screen: "example.PushedScreen"
45
+      container: "example.PushedScreen"
46 46
     });
47 47
   }
48 48
   onPushStyledPress() {
49 49
     this.props.navigator.push({
50 50
       title: "More",
51
-      screen: "com.example.StyledScreen"
51
+      container: "com.example.StyledScreen"
52 52
     });
53 53
   }
54 54
   onPopPress() {
@@ -60,7 +60,7 @@ export default class PushedScreen extends Component {
60 60
   onResetToPress() {
61 61
     this.props.navigator.resetTo({
62 62
       title: "New Root",
63
-      screen: "com.example.ThirdTabScreen"
63
+      container: "com.example.ThirdTabScreen"
64 64
     });
65 65
   }
66 66
 }

playground/src/screens/SecondTabScreen.js → playground/src/__screens/SecondTabScreen.js Vedi File

@@ -109,7 +109,7 @@ export default class SecondTabScreen extends Component {
109 109
       if (parts[0] == 'tab2') {
110 110
         this.props.navigator.resetTo({
111 111
           title: "Replaced Root",
112
-          screen: parts[1],
112
+          container: parts[1],
113 113
           animated: true
114 114
         });
115 115
         this.props.navigator.switchToTab();

playground/src/screens/SideMenu.js → playground/src/__screens/SideMenu.js Vedi File

@@ -41,7 +41,7 @@ export default class SideMenu extends Component {
41 41
     this._toggleDrawer();
42 42
     this.props.navigator.showModal({
43 43
       title: "Modal",
44
-      screen: "example.ModalScreen"
44
+      container: "example.ModalScreen"
45 45
     });
46 46
   }
47 47
 

playground/src/screens/StyledScreen.js → playground/src/__screens/StyledScreen.js Vedi File

@@ -45,11 +45,11 @@ export default class StyledScreen extends Component {
45 45
           <TouchableOpacity onPress={ this.onPopPress.bind(this) }>
46 46
             <Text style={styles.button}>Pop Screen</Text>
47 47
           </TouchableOpacity>
48
-  
48
+
49 49
           <TouchableOpacity onPress={ this.onSetSubtitlePress.bind(this) }>
50 50
             <Text style={styles.button}>Set Subtitle</Text>
51 51
           </TouchableOpacity>
52
-  
52
+
53 53
           <TouchableOpacity onPress={ this.onSetTitleImagePress.bind(this) }>
54 54
             <Text style={styles.button}>Set Title Image</Text>
55 55
           </TouchableOpacity>
@@ -66,19 +66,19 @@ export default class StyledScreen extends Component {
66 66
   onPushPress() {
67 67
     this.props.navigator.push({
68 68
       title: "More",
69
-      screen: "com.example.PushedScreen"
69
+      container: "com.example.PushedScreen"
70 70
     });
71 71
   }
72 72
   onPushStyledPress() {
73 73
     this.props.navigator.push({
74 74
       title: "More",
75
-      screen: "com.example.StyledScreen"
75
+      container: "com.example.StyledScreen"
76 76
     });
77 77
   }
78 78
   onPopPress() {
79 79
     this.props.navigator.pop();
80 80
   }
81
-  
81
+
82 82
   onSetSubtitlePress() {
83 83
     if (Platform.OS === 'android') {
84 84
       this.props.navigator.setSubTitle({
@@ -96,14 +96,14 @@ export default class StyledScreen extends Component {
96 96
       })
97 97
     }
98 98
   }
99
-  
99
+
100 100
   onSetTitleImagePress() {
101 101
     this.props.navigator.setTitle({
102 102
       title: 'title',
103 103
       titleImage: require('../../img/one.png'),
104 104
     })
105 105
   }
106
-  
106
+
107 107
 }
108 108
 
109 109
 const styles = StyleSheet.create({

playground/src/screens/index.android.js → playground/src/__screens/index.android.js Vedi File


playground/src/screens/index.ios.js → playground/src/__screens/index.ios.js Vedi File


+ 7
- 82
playground/src/app.js Vedi File

@@ -1,85 +1,10 @@
1
-import {
2
-  Platform
3
-} from 'react-native';
4
-import {Navigation} from 'react-native-navigation';
1
+import Navigation from 'react-native-navigation';
5 2
 
6
-// screen related book keeping
7
-import {registerScreens} from './screens';
8
-registerScreens();
9
-
10
-const createTabs = () => {
11
-  let tabs = [
12
-    {
13
-      label: 'One',
14
-      screen: 'com.example.FirstTabScreen',
15
-      icon: require('../img/one.png'),
16
-      selectedIcon: require('../img/one_selected.png'),
17
-      title: 'Screen One',
18
-      navigatorStyle: {
19
-          tabBarHidden: true
20
-      }
21
-    },
22
-    {
23
-      label: 'Two',
24
-      screen: 'com.example.SecondTabScreen',
25
-      icon: require('../img/two.png'),
26
-      selectedIcon: require('../img/two_selected.png'),
27
-      title: 'Screen Two',
28
-      navigatorStyle: {
29
-        tabBarBackgroundColor: '#4dbce9',
30
-      }
31
-    }
32
-  ];
33
-  if (Platform.OS === 'android') {
34
-    tabs.push({
35
-      label: 'Collapsing',
36
-      screen: 'example.CollapsingTopBarScreen',
37
-      icon: require('../img/one.png'),
38
-      title: 'Collapsing',
39
-    });
40
-  }
41
-  return tabs;
42
-};
43
-
44
-import * as Commands from './../node_modules/react-native-navigation/src2/commands/valid-commands';
45
-//Navigation.startApp(Commands.singleScreenApp);
46
-//Navigation.startApp(Commands.tabBasedApp);
47
-//Navigation.startApp(Commands.singleWithSideMenu);
48
-//Navigation.startApp(Commands.singleWithRightSideMenu);
49
-//Navigation.startApp(Commands.singleWithBothMenus);
50
-//Navigation.startApp(Commands.tabBasedWithSideMenu);
51
-
52
-// this will start our app
53
-Navigation.startTabBasedApp({
54
-  tabs: createTabs(),
55
-  appStyle: {
56
-    tabBarBackgroundColor: '#0f2362',
57
-    tabBarButtonColor: '#ffffff',
58
-    tabBarSelectedButtonColor: '#63d7cc',
59
-  },
60
-  drawer: {
61
-    left: {
62
-      screen: 'com.example.SideMenu'
3
+export function start() {
4
+  Navigation.startApp({
5
+    container: {
6
+      key: 'com.example.WelcomeScreen'
63 7
     }
64
-  }
65
-});
66
-//Navigation.startSingleScreenApp({
67
-//  screen: {
68
-//    screen: 'com.example.FirstTabScreen',
69
-//    title: 'Navigation',
70
-//    navigatorStyle: {
71
-//      navBarBackgroundColor: '#4dbce9',
72
-//      navBarTextColor: '#ffff00',
73
-//      navBarSubtitleTextColor: '#ff0000',
74
-//      navBarButtonColor: '#ffffff',
75
-//      statusBarTextColorScheme: 'light',
76
-//      tabBarHidden: true
77
-//    }
78
-//  },
79
-//  drawer: {
80
-//    left: {
81
-//      screen: 'com.example.SideMenu'
82
-//    }
83
-//  }
84
-//});
8
+  });
9
+}
85 10
 

+ 3
- 0
playground/src/index.js Vedi File

@@ -0,0 +1,3 @@
1
+import {start} from './app';
2
+
3
+start();

+ 3
- 2
src/index.js Vedi File

@@ -1,3 +1,4 @@
1
-import * as Navigation from './Navigation';
1
+import * as _Navigation from './Navigation';
2 2
 
3
-export default Navigation;
3
+export default _Navigation;
4
+export const Navigation = _Navigation;

+ 3
- 1
src/index.test.js Vedi File

@@ -1,4 +1,5 @@
1 1
 import Navigation from './index';
2
+import {Navigation as inner} from './index';
2 3
 
3 4
 describe('index', () => {
4 5
   let uut;
@@ -7,8 +8,9 @@ describe('index', () => {
7 8
     uut = require('./index').default;
8 9
   });
9 10
 
10
-  it('exposes Navigation as default', () => {
11
+  it('exposes Navigation as default or as object', () => {
11 12
     expect(uut.startApp).toBeInstanceOf(Function);
12 13
     expect(Navigation.startApp).toBeInstanceOf(Function);
14
+    expect(inner.startApp).toBeInstanceOf(Function);
13 15
   });
14 16
 });