diff --git a/RNExample/ios/RNExample/Images.xcassets/AppIcon.appiconset/Contents.json b/RNExample/ios/RNExample/Images.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 118c98f7..00000000 --- a/RNExample/ios/RNExample/Images.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/RNExample/ios/RNExample/Images.xcassets/Contents.json b/RNExample/ios/RNExample/Images.xcassets/Contents.json deleted file mode 100644 index 2d92bd53..00000000 --- a/RNExample/ios/RNExample/Images.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/RNExample/.buckconfig b/examples/react-native/.buckconfig similarity index 100% rename from RNExample/.buckconfig rename to examples/react-native/.buckconfig diff --git a/RNExample/.eslintrc.js b/examples/react-native/.eslintrc.js similarity index 100% rename from RNExample/.eslintrc.js rename to examples/react-native/.eslintrc.js diff --git a/RNExample/.gitattributes b/examples/react-native/.gitattributes similarity index 100% rename from RNExample/.gitattributes rename to examples/react-native/.gitattributes diff --git a/RNExample/.gitignore b/examples/react-native/.gitignore similarity index 100% rename from RNExample/.gitignore rename to examples/react-native/.gitignore diff --git a/RNExample/.prettierrc.js b/examples/react-native/.prettierrc.js similarity index 100% rename from RNExample/.prettierrc.js rename to examples/react-native/.prettierrc.js diff --git a/RNExample/.watchmanconfig b/examples/react-native/.watchmanconfig similarity index 100% rename from RNExample/.watchmanconfig rename to examples/react-native/.watchmanconfig diff --git a/RNExample/App.tsx b/examples/react-native/App.tsx similarity index 100% rename from RNExample/App.tsx rename to examples/react-native/App.tsx diff --git a/RNExample/__tests__/App-test.tsx b/examples/react-native/__tests__/App-test.tsx similarity index 100% rename from RNExample/__tests__/App-test.tsx rename to examples/react-native/__tests__/App-test.tsx diff --git a/RNExample/android/app/_BUCK b/examples/react-native/android/app/_BUCK similarity index 100% rename from RNExample/android/app/_BUCK rename to examples/react-native/android/app/_BUCK diff --git a/RNExample/android/app/build.gradle b/examples/react-native/android/app/build.gradle similarity index 100% rename from RNExample/android/app/build.gradle rename to examples/react-native/android/app/build.gradle diff --git a/RNExample/android/app/build_defs.bzl b/examples/react-native/android/app/build_defs.bzl similarity index 100% rename from RNExample/android/app/build_defs.bzl rename to examples/react-native/android/app/build_defs.bzl diff --git a/RNExample/android/app/debug.keystore b/examples/react-native/android/app/debug.keystore similarity index 100% rename from RNExample/android/app/debug.keystore rename to examples/react-native/android/app/debug.keystore diff --git a/RNExample/android/app/proguard-rules.pro b/examples/react-native/android/app/proguard-rules.pro similarity index 100% rename from RNExample/android/app/proguard-rules.pro rename to examples/react-native/android/app/proguard-rules.pro diff --git a/RNExample/android/app/src/debug/AndroidManifest.xml b/examples/react-native/android/app/src/debug/AndroidManifest.xml similarity index 100% rename from RNExample/android/app/src/debug/AndroidManifest.xml rename to examples/react-native/android/app/src/debug/AndroidManifest.xml diff --git a/RNExample/android/app/src/debug/java/com/rnexample/ReactNativeFlipper.java b/examples/react-native/android/app/src/debug/java/com/rnexample/ReactNativeFlipper.java similarity index 100% rename from RNExample/android/app/src/debug/java/com/rnexample/ReactNativeFlipper.java rename to examples/react-native/android/app/src/debug/java/com/rnexample/ReactNativeFlipper.java diff --git a/RNExample/android/app/src/main/AndroidManifest.xml b/examples/react-native/android/app/src/main/AndroidManifest.xml similarity index 100% rename from RNExample/android/app/src/main/AndroidManifest.xml rename to examples/react-native/android/app/src/main/AndroidManifest.xml diff --git a/RNExample/android/app/src/main/java/com/rnexample/MainActivity.java b/examples/react-native/android/app/src/main/java/com/rnexample/MainActivity.java similarity index 100% rename from RNExample/android/app/src/main/java/com/rnexample/MainActivity.java rename to examples/react-native/android/app/src/main/java/com/rnexample/MainActivity.java diff --git a/RNExample/android/app/src/main/java/com/rnexample/MainApplication.java b/examples/react-native/android/app/src/main/java/com/rnexample/MainApplication.java similarity index 100% rename from RNExample/android/app/src/main/java/com/rnexample/MainApplication.java rename to examples/react-native/android/app/src/main/java/com/rnexample/MainApplication.java diff --git a/RNExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/examples/react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from RNExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png rename to examples/react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/RNExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/examples/react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png similarity index 100% rename from RNExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png rename to examples/react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png diff --git a/RNExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/examples/react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from RNExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png rename to examples/react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/RNExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/examples/react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png similarity index 100% rename from RNExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png rename to examples/react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png diff --git a/RNExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/examples/react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from RNExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png rename to examples/react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/RNExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/examples/react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png similarity index 100% rename from RNExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png rename to examples/react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png diff --git a/RNExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/examples/react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from RNExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to examples/react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/RNExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/examples/react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png similarity index 100% rename from RNExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png rename to examples/react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png diff --git a/RNExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/examples/react-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from RNExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to examples/react-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/RNExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/examples/react-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png similarity index 100% rename from RNExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png rename to examples/react-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png diff --git a/RNExample/android/app/src/main/res/values/strings.xml b/examples/react-native/android/app/src/main/res/values/strings.xml similarity index 100% rename from RNExample/android/app/src/main/res/values/strings.xml rename to examples/react-native/android/app/src/main/res/values/strings.xml diff --git a/RNExample/android/app/src/main/res/values/styles.xml b/examples/react-native/android/app/src/main/res/values/styles.xml similarity index 100% rename from RNExample/android/app/src/main/res/values/styles.xml rename to examples/react-native/android/app/src/main/res/values/styles.xml diff --git a/RNExample/android/build.gradle b/examples/react-native/android/build.gradle similarity index 100% rename from RNExample/android/build.gradle rename to examples/react-native/android/build.gradle diff --git a/RNExample/android/gradle.properties b/examples/react-native/android/gradle.properties similarity index 100% rename from RNExample/android/gradle.properties rename to examples/react-native/android/gradle.properties diff --git a/RNExample/android/gradle/wrapper/gradle-wrapper.jar b/examples/react-native/android/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from RNExample/android/gradle/wrapper/gradle-wrapper.jar rename to examples/react-native/android/gradle/wrapper/gradle-wrapper.jar diff --git a/RNExample/android/gradle/wrapper/gradle-wrapper.properties b/examples/react-native/android/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from RNExample/android/gradle/wrapper/gradle-wrapper.properties rename to examples/react-native/android/gradle/wrapper/gradle-wrapper.properties diff --git a/RNExample/android/gradlew b/examples/react-native/android/gradlew similarity index 100% rename from RNExample/android/gradlew rename to examples/react-native/android/gradlew diff --git a/RNExample/android/gradlew.bat b/examples/react-native/android/gradlew.bat similarity index 100% rename from RNExample/android/gradlew.bat rename to examples/react-native/android/gradlew.bat diff --git a/RNExample/android/settings.gradle b/examples/react-native/android/settings.gradle similarity index 100% rename from RNExample/android/settings.gradle rename to examples/react-native/android/settings.gradle diff --git a/RNExample/app.json b/examples/react-native/app.json similarity index 96% rename from RNExample/app.json rename to examples/react-native/app.json index 2f1468cf..45e3426a 100644 --- a/RNExample/app.json +++ b/examples/react-native/app.json @@ -1,4 +1,4 @@ { "name": "RNExample", "displayName": "RNExample" -} \ No newline at end of file +} diff --git a/RNExample/babel.config.js b/examples/react-native/babel.config.js similarity index 100% rename from RNExample/babel.config.js rename to examples/react-native/babel.config.js diff --git a/RNExample/index.js b/examples/react-native/index.js similarity index 100% rename from RNExample/index.js rename to examples/react-native/index.js diff --git a/RNExample/ios/Podfile b/examples/react-native/ios/Podfile similarity index 100% rename from RNExample/ios/Podfile rename to examples/react-native/ios/Podfile diff --git a/RNExample/ios/Podfile.lock b/examples/react-native/ios/Podfile.lock similarity index 100% rename from RNExample/ios/Podfile.lock rename to examples/react-native/ios/Podfile.lock diff --git a/RNExample/ios/RNExample-tvOS/Info.plist b/examples/react-native/ios/RNExample-tvOS/Info.plist similarity index 100% rename from RNExample/ios/RNExample-tvOS/Info.plist rename to examples/react-native/ios/RNExample-tvOS/Info.plist diff --git a/RNExample/ios/RNExample-tvOSTests/Info.plist b/examples/react-native/ios/RNExample-tvOSTests/Info.plist similarity index 100% rename from RNExample/ios/RNExample-tvOSTests/Info.plist rename to examples/react-native/ios/RNExample-tvOSTests/Info.plist diff --git a/RNExample/ios/RNExample.xcodeproj/project.pbxproj b/examples/react-native/ios/RNExample.xcodeproj/project.pbxproj similarity index 100% rename from RNExample/ios/RNExample.xcodeproj/project.pbxproj rename to examples/react-native/ios/RNExample.xcodeproj/project.pbxproj diff --git a/RNExample/ios/RNExample.xcodeproj/xcshareddata/xcschemes/RNExample-tvOS.xcscheme b/examples/react-native/ios/RNExample.xcodeproj/xcshareddata/xcschemes/RNExample-tvOS.xcscheme similarity index 100% rename from RNExample/ios/RNExample.xcodeproj/xcshareddata/xcschemes/RNExample-tvOS.xcscheme rename to examples/react-native/ios/RNExample.xcodeproj/xcshareddata/xcschemes/RNExample-tvOS.xcscheme diff --git a/RNExample/ios/RNExample.xcodeproj/xcshareddata/xcschemes/RNExample.xcscheme b/examples/react-native/ios/RNExample.xcodeproj/xcshareddata/xcschemes/RNExample.xcscheme similarity index 100% rename from RNExample/ios/RNExample.xcodeproj/xcshareddata/xcschemes/RNExample.xcscheme rename to examples/react-native/ios/RNExample.xcodeproj/xcshareddata/xcschemes/RNExample.xcscheme diff --git a/RNExample/ios/RNExample.xcworkspace/contents.xcworkspacedata b/examples/react-native/ios/RNExample.xcworkspace/contents.xcworkspacedata similarity index 100% rename from RNExample/ios/RNExample.xcworkspace/contents.xcworkspacedata rename to examples/react-native/ios/RNExample.xcworkspace/contents.xcworkspacedata diff --git a/RNExample/ios/RNExample/AppDelegate.h b/examples/react-native/ios/RNExample/AppDelegate.h similarity index 100% rename from RNExample/ios/RNExample/AppDelegate.h rename to examples/react-native/ios/RNExample/AppDelegate.h diff --git a/RNExample/ios/RNExample/AppDelegate.m b/examples/react-native/ios/RNExample/AppDelegate.m similarity index 100% rename from RNExample/ios/RNExample/AppDelegate.m rename to examples/react-native/ios/RNExample/AppDelegate.m diff --git a/examples/react-native/ios/RNExample/Images.xcassets/AppIcon.appiconset/Contents.json b/examples/react-native/ios/RNExample/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..48e64ae8 --- /dev/null +++ b/examples/react-native/ios/RNExample/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,38 @@ +{ + "images": [ + { + "idiom": "iphone", + "size": "29x29", + "scale": "2x" + }, + { + "idiom": "iphone", + "size": "29x29", + "scale": "3x" + }, + { + "idiom": "iphone", + "size": "40x40", + "scale": "2x" + }, + { + "idiom": "iphone", + "size": "40x40", + "scale": "3x" + }, + { + "idiom": "iphone", + "size": "60x60", + "scale": "2x" + }, + { + "idiom": "iphone", + "size": "60x60", + "scale": "3x" + } + ], + "info": { + "version": 1, + "author": "xcode" + } +} diff --git a/examples/react-native/ios/RNExample/Images.xcassets/Contents.json b/examples/react-native/ios/RNExample/Images.xcassets/Contents.json new file mode 100644 index 00000000..97a8662e --- /dev/null +++ b/examples/react-native/ios/RNExample/Images.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info": { + "version": 1, + "author": "xcode" + } +} diff --git a/RNExample/ios/RNExample/Info.plist b/examples/react-native/ios/RNExample/Info.plist similarity index 100% rename from RNExample/ios/RNExample/Info.plist rename to examples/react-native/ios/RNExample/Info.plist diff --git a/RNExample/ios/RNExample/LaunchScreen.storyboard b/examples/react-native/ios/RNExample/LaunchScreen.storyboard similarity index 100% rename from RNExample/ios/RNExample/LaunchScreen.storyboard rename to examples/react-native/ios/RNExample/LaunchScreen.storyboard diff --git a/RNExample/ios/RNExample/main.m b/examples/react-native/ios/RNExample/main.m similarity index 100% rename from RNExample/ios/RNExample/main.m rename to examples/react-native/ios/RNExample/main.m diff --git a/RNExample/ios/RNExampleTests/Info.plist b/examples/react-native/ios/RNExampleTests/Info.plist similarity index 100% rename from RNExample/ios/RNExampleTests/Info.plist rename to examples/react-native/ios/RNExampleTests/Info.plist diff --git a/RNExample/ios/RNExampleTests/RNExampleTests.m b/examples/react-native/ios/RNExampleTests/RNExampleTests.m similarity index 100% rename from RNExample/ios/RNExampleTests/RNExampleTests.m rename to examples/react-native/ios/RNExampleTests/RNExampleTests.m diff --git a/RNExample/metro.config.js b/examples/react-native/metro.config.js similarity index 100% rename from RNExample/metro.config.js rename to examples/react-native/metro.config.js diff --git a/RNExample/package.json b/examples/react-native/package.json similarity index 100% rename from RNExample/package.json rename to examples/react-native/package.json diff --git a/RNExample/tsconfig.json b/examples/react-native/tsconfig.json similarity index 71% rename from RNExample/tsconfig.json rename to examples/react-native/tsconfig.json index 9fe77783..5173cc20 100644 --- a/RNExample/tsconfig.json +++ b/examples/react-native/tsconfig.json @@ -1,27 +1,28 @@ - { "compilerOptions": { /* Basic Options */ - "target": "esnext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ - "lib": ["es6"], /* Specify library files to be included in the compilation. */ - "allowJs": true, /* Allow javascript files to be compiled. */ + "target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */, + "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, + "lib": [ + "es6" + ] /* Specify library files to be included in the compilation. */, + "allowJs": true /* Allow javascript files to be compiled. */, // "checkJs": true, /* Report errors in .js files. */ - "jsx": "react-native", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ + "jsx": "react-native" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */, // "declaration": true, /* Generates corresponding '.d.ts' file. */ // "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", /* Concatenate and emit output to single file. */ // "outDir": "./", /* Redirect output structure to the directory. */ // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ // "removeComments": true, /* Do not emit comments to output. */ - "noEmit": true, /* Do not emit outputs. */ + "noEmit": true /* Do not emit outputs. */, // "incremental": true, /* Enable incremental compilation */ // "importHelpers": true, /* Import emit helpers from 'tslib'. */ // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ - "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ + "isolatedModules": true /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */, /* Strict Type-Checking Options */ - "strict": true, /* Enable all strict type-checking options. */ + "strict": true /* Enable all strict type-checking options. */, // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ // "strictNullChecks": true, /* Enable strict null checks. */ // "strictFunctionTypes": true, /* Enable strict checking of function types. */ @@ -36,14 +37,14 @@ // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ /* Module Resolution Options */ - "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ + "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */, // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ // "typeRoots": [], /* List of folders to include type definitions from. */ // "types": [], /* Type declaration files to be included in compilation. */ - "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ - "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + "allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */, + "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ /* Source Map Options */ @@ -57,6 +58,9 @@ // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ }, "exclude": [ - "node_modules", "babel.config.js", "metro.config.js", "jest.config.js" + "node_modules", + "babel.config.js", + "metro.config.js", + "jest.config.js" ] } diff --git a/RNExample/yarn.lock b/examples/react-native/yarn.lock similarity index 100% rename from RNExample/yarn.lock rename to examples/react-native/yarn.lock diff --git a/examples/web/.DS_Store b/examples/web/.DS_Store new file mode 100644 index 00000000..43723e8a Binary files /dev/null and b/examples/web/.DS_Store differ diff --git a/example/package.json b/examples/web/package.json similarity index 100% rename from example/package.json rename to examples/web/package.json diff --git a/example/public/index.html b/examples/web/public/index.html similarity index 100% rename from example/public/index.html rename to examples/web/public/index.html diff --git a/example/src/index.js b/examples/web/src/index.js similarity index 100% rename from example/src/index.js rename to examples/web/src/index.js diff --git a/example/yarn.lock b/examples/web/yarn.lock similarity index 100% rename from example/yarn.lock rename to examples/web/yarn.lock