Browse Source

example --> playground WIP

Daniel Zlotin 7 years ago
parent
commit
44a33214eb
74 changed files with 16 additions and 17 deletions
  1. 11
    4
      .npmignore
  2. 0
    8
      example/README.md
  3. 0
    3
      example/scripts/postinstall.js
  4. 0
    0
      playground/.flowconfig
  5. 0
    0
      playground/.gitignore
  6. 0
    0
      playground/.watchmanconfig
  7. 3
    0
      playground/README.md
  8. 0
    0
      playground/android/app/build.gradle
  9. 0
    0
      playground/android/app/proguard-rules.pro
  10. 0
    0
      playground/android/app/src/main/AndroidManifest.xml
  11. 0
    0
      playground/android/app/src/main/java/com/example/MainActivity.java
  12. 0
    0
      playground/android/app/src/main/java/com/example/MainApplication.java
  13. 0
    0
      playground/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
  14. 0
    0
      playground/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
  15. 0
    0
      playground/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  16. 0
    0
      playground/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  17. 0
    0
      playground/android/app/src/main/res/values/strings.xml
  18. 0
    0
      playground/android/build.gradle
  19. 0
    0
      playground/android/gradle.properties
  20. 0
    0
      playground/android/gradle/wrapper/gradle-wrapper.jar
  21. 0
    0
      playground/android/gradle/wrapper/gradle-wrapper.properties
  22. 0
    0
      playground/android/gradlew
  23. 0
    0
      playground/android/gradlew.bat
  24. 0
    0
      playground/android/settings.gradle
  25. 0
    0
      playground/commands.json
  26. 0
    0
      playground/e2e/init.js
  27. 0
    0
      playground/e2e/mocha.opts
  28. 0
    0
      playground/e2e/sanity.test.js
  29. 0
    0
      playground/img/colors.png
  30. 0
    0
      playground/img/gyro_header.jpg
  31. 0
    0
      playground/img/navicon_add@2x.android.png
  32. 0
    0
      playground/img/navicon_add@2x.ios.png
  33. 0
    0
      playground/img/navicon_add@3x.android.png
  34. 0
    0
      playground/img/navicon_edit@2x.png
  35. 0
    0
      playground/img/navicon_menu@2x.png
  36. 0
    0
      playground/img/one@1.5x.android.png
  37. 0
    0
      playground/img/one@1x.android.png
  38. 0
    0
      playground/img/one@2x.ios.png
  39. 0
    0
      playground/img/one@3x.android.png
  40. 0
    0
      playground/img/one@4x.android.png
  41. 0
    0
      playground/img/one_selected@2x.png
  42. 0
    0
      playground/img/three@2x.png
  43. 0
    0
      playground/img/three_selected@2x.png
  44. 0
    0
      playground/img/two@2x.png
  45. 0
    0
      playground/img/two_selected@2x.png
  46. 0
    0
      playground/index.android.js
  47. 0
    0
      playground/index.ios.js
  48. 0
    0
      playground/ios/example.xcodeproj/project.pbxproj
  49. 0
    0
      playground/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme
  50. 0
    0
      playground/ios/example.xcodeproj/xcshareddata/xcschemes/example_Detox.xcscheme
  51. 0
    0
      playground/ios/example.xcodeproj/xcshareddata/xcschemes/example_release.xcscheme
  52. 0
    0
      playground/ios/example/AppDelegate.h
  53. 0
    0
      playground/ios/example/AppDelegate.m
  54. 0
    0
      playground/ios/example/Base.lproj/LaunchScreen.xib
  55. 0
    0
      playground/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json
  56. 0
    0
      playground/ios/example/Info.plist
  57. 0
    0
      playground/ios/example/main.m
  58. 0
    0
      playground/ios/exampleTests/Info.plist
  59. 0
    0
      playground/ios/exampleTests/RNNViewControllerTests.m
  60. 0
    0
      playground/ios/exampleTests/exampleTests.m
  61. 2
    2
      playground/package.json
  62. 0
    0
      playground/scripts/e2e.ios.js
  63. 0
    0
      playground/src/app.js
  64. 0
    0
      playground/src/screens/CollapsingTopBarScreen.android.js
  65. 0
    0
      playground/src/screens/FirstTabScreen.js
  66. 0
    0
      playground/src/screens/LightBoxScreen.js
  67. 0
    0
      playground/src/screens/ModalScreen.js
  68. 0
    0
      playground/src/screens/NotificationScreen.js
  69. 0
    0
      playground/src/screens/PushedScreen.js
  70. 0
    0
      playground/src/screens/SecondTabScreen.js
  71. 0
    0
      playground/src/screens/SideMenu.js
  72. 0
    0
      playground/src/screens/StyledScreen.js
  73. 0
    0
      playground/src/screens/index.android.js
  74. 0
    0
      playground/src/screens/index.ios.js

+ 11
- 4
.npmignore View File

@@ -1,11 +1,20 @@
1
-example
2
-old-example-redux
1
+playground
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
3 11
 
4 12
 #################
5 13
 # from .gitignore:
6 14
 ################
7 15
 
8 16
 
17
+
9 18
 ############
10 19
 # Node
11 20
 ############
@@ -148,7 +157,6 @@ fastlane/screenshots
148 157
 android/bin/
149 158
 android/gen/
150 159
 android/out/
151
-android/app/build/
152 160
 
153 161
 # Gradle files
154 162
 android/.gradle/
@@ -218,4 +226,3 @@ buck-out/
218 226
 \.buckd/
219 227
 android/app/libs
220 228
 android/keystores/debug.keystore
221
-

+ 0
- 8
example/README.md View File

@@ -1,8 +0,0 @@
1
-# example
2
-
3
-A simple usage example. If you're using redux, take a look at [example-redux](../example-redux).
4
-
5
-## Installation - iOS
6
-
7
-* In the `example/` folder, run `npm install`
8
-* Open `example/ios/example.xcodeproj` in Xcode and press the play button

+ 0
- 3
example/scripts/postinstall.js View File

@@ -1,3 +0,0 @@
1
-const cp = require('child_process');
2
-cp.execSync(`rm -rf node_modules/react-native-navigation/node_modules`);
3
-cp.execSync(`rm -rf node_modules/react-native-navigation/example `);

example/.flowconfig → playground/.flowconfig View File


example/.gitignore → playground/.gitignore View File


example/.watchmanconfig → playground/.watchmanconfig View File


+ 3
- 0
playground/README.md View File

@@ -0,0 +1,3 @@
1
+# Navigation Playground
2
+
3
+An example project using `react-native-navigation`.

example/android/app/build.gradle → playground/android/app/build.gradle View File


example/android/app/proguard-rules.pro → playground/android/app/proguard-rules.pro View File


example/android/app/src/main/AndroidManifest.xml → playground/android/app/src/main/AndroidManifest.xml View File


example/android/app/src/main/java/com/example/MainActivity.java → playground/android/app/src/main/java/com/example/MainActivity.java View File


example/android/app/src/main/java/com/example/MainApplication.java → playground/android/app/src/main/java/com/example/MainApplication.java View File


example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png → playground/android/app/src/main/res/mipmap-hdpi/ic_launcher.png View File


example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png → playground/android/app/src/main/res/mipmap-mdpi/ic_launcher.png View File


example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png → playground/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png View File


example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png → playground/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png View File


example/android/app/src/main/res/values/strings.xml → playground/android/app/src/main/res/values/strings.xml View File


example/android/build.gradle → playground/android/build.gradle View File


example/android/gradle.properties → playground/android/gradle.properties View File


example/android/gradle/wrapper/gradle-wrapper.jar → playground/android/gradle/wrapper/gradle-wrapper.jar View File


example/android/gradle/wrapper/gradle-wrapper.properties → playground/android/gradle/wrapper/gradle-wrapper.properties View File


example/android/gradlew → playground/android/gradlew View File


example/android/gradlew.bat → playground/android/gradlew.bat View File


example/android/settings.gradle → playground/android/settings.gradle View File


example/commands.json → playground/commands.json View File


example/e2e/init.js → playground/e2e/init.js View File


example/e2e/mocha.opts → playground/e2e/mocha.opts View File


example/e2e/sanity.test.js → playground/e2e/sanity.test.js View File


example/img/colors.png → playground/img/colors.png View File


example/img/gyro_header.jpg → playground/img/gyro_header.jpg View File


example/img/navicon_add@2x.android.png → playground/img/navicon_add@2x.android.png View File


example/img/navicon_add@2x.ios.png → playground/img/navicon_add@2x.ios.png View File


example/img/navicon_add@3x.android.png → playground/img/navicon_add@3x.android.png View File


example/img/navicon_edit@2x.png → playground/img/navicon_edit@2x.png View File


example/img/navicon_menu@2x.png → playground/img/navicon_menu@2x.png View File


example/img/one@1.5x.android.png → playground/img/one@1.5x.android.png View File


example/img/one@1x.android.png → playground/img/one@1x.android.png View File


example/img/one@2x.ios.png → playground/img/one@2x.ios.png View File


example/img/one@3x.android.png → playground/img/one@3x.android.png View File


example/img/one@4x.android.png → playground/img/one@4x.android.png View File


example/img/one_selected@2x.png → playground/img/one_selected@2x.png View File


example/img/three@2x.png → playground/img/three@2x.png View File


example/img/three_selected@2x.png → playground/img/three_selected@2x.png View File


example/img/two@2x.png → playground/img/two@2x.png View File


example/img/two_selected@2x.png → playground/img/two_selected@2x.png View File


example/index.android.js → playground/index.android.js View File


example/index.ios.js → playground/index.ios.js View File


example/ios/example.xcodeproj/project.pbxproj → playground/ios/example.xcodeproj/project.pbxproj View File


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


example/ios/example.xcodeproj/xcshareddata/xcschemes/example_Detox.xcscheme → playground/ios/example.xcodeproj/xcshareddata/xcschemes/example_Detox.xcscheme View File


example/ios/example.xcodeproj/xcshareddata/xcschemes/example_release.xcscheme → playground/ios/example.xcodeproj/xcshareddata/xcschemes/example_release.xcscheme View File


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


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


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


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


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


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


example/ios/exampleTests/Info.plist → playground/ios/exampleTests/Info.plist View File


example/ios/exampleTests/RNNViewControllerTests.m → playground/ios/exampleTests/RNNViewControllerTests.m View File


example/ios/exampleTests/exampleTests.m → playground/ios/exampleTests/exampleTests.m View File


example/package.json → playground/package.json View File

@@ -1,9 +1,9 @@
1 1
 {
2
-  "name": "example",
2
+  "name": "playground",
3 3
   "version": "1.0.0",
4 4
   "private": true,
5 5
   "scripts": {
6
-    "postinstall": "node ./scripts/postinstall.js",
6
+    "postinstall": "rm -rf node_modules/react-native-navigation/node_modules && rm -rf node_modules/react-native-navigation/playground",
7 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",
8 8
     "xcode": "open ios/example.xcodeproj",
9 9
     "android": "cd android && ./gradlew installDebug",

example/scripts/e2e.ios.js → playground/scripts/e2e.ios.js View File


example/src/app.js → playground/src/app.js View File


example/src/screens/CollapsingTopBarScreen.android.js → playground/src/screens/CollapsingTopBarScreen.android.js View File


example/src/screens/FirstTabScreen.js → playground/src/screens/FirstTabScreen.js View File


example/src/screens/LightBoxScreen.js → playground/src/screens/LightBoxScreen.js View File


example/src/screens/ModalScreen.js → playground/src/screens/ModalScreen.js View File


example/src/screens/NotificationScreen.js → playground/src/screens/NotificationScreen.js View File


example/src/screens/PushedScreen.js → playground/src/screens/PushedScreen.js View File


example/src/screens/SecondTabScreen.js → playground/src/screens/SecondTabScreen.js View File


example/src/screens/SideMenu.js → playground/src/screens/SideMenu.js View File


example/src/screens/StyledScreen.js → playground/src/screens/StyledScreen.js View File


example/src/screens/index.android.js → playground/src/screens/index.android.js View File


example/src/screens/index.ios.js → playground/src/screens/index.ios.js View File