├── packages ├── macos │ ├── .watchmanconfig │ ├── .gitattributes │ ├── macos │ │ ├── .gitignore │ │ ├── reactnativeuniversalproject-macOS │ │ │ ├── ViewController.h │ │ │ ├── Assets.xcassets │ │ │ │ ├── Contents.json │ │ │ │ └── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ ├── main.m │ │ │ ├── AppDelegate.h │ │ │ ├── reactnativeuniversalproject.entitlements │ │ │ ├── ViewController.m │ │ │ ├── AppDelegate.m │ │ │ └── Info.plist │ │ ├── reactnativeuniversalproject-iOS │ │ │ ├── Images.xcassets │ │ │ │ ├── Contents.json │ │ │ │ └── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ ├── AppDelegate.h │ │ │ ├── main.m │ │ │ ├── AppDelegate.m │ │ │ ├── Info.plist │ │ │ └── Base.lproj │ │ │ │ └── LaunchScreen.xib │ │ ├── reactnativeuniversalproject.xcworkspace │ │ │ ├── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ │ └── contents.xcworkspacedata │ │ ├── Podfile │ │ └── reactnativeuniversalproject.xcodeproj │ │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── reactnativeuniversalproject-iOS.xcscheme │ │ │ └── reactnativeuniversalproject-macOS.xcscheme │ ├── babel.config.js │ ├── app.json │ ├── .eslintrc.js │ ├── index.js │ ├── package.json │ ├── metro.config.js │ └── .gitignore ├── mobile │ ├── .watchmanconfig │ ├── .editorconfig │ ├── babel.config.js │ ├── app.json │ ├── android │ │ ├── app │ │ │ ├── debug.keystore │ │ │ ├── src │ │ │ │ ├── main │ │ │ │ │ ├── res │ │ │ │ │ │ ├── values │ │ │ │ │ │ │ ├── strings.xml │ │ │ │ │ │ │ └── styles.xml │ │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ │ └── mipmap-xxxhdpi │ │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── java │ │ │ │ │ │ └── com │ │ │ │ │ │ │ └── reactnativeuniversalproject │ │ │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ │ │ └── MainApplication.java │ │ │ │ │ └── AndroidManifest.xml │ │ │ │ └── debug │ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ │ └── java │ │ │ │ │ └── com │ │ │ │ │ └── reactnativeuniversalproject │ │ │ │ │ └── ReactNativeFlipper.java │ │ │ ├── proguard-rules.pro │ │ │ ├── build_defs.bzl │ │ │ └── _BUCK │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ └── gradle-wrapper.properties │ │ ├── settings.gradle │ │ ├── build.gradle │ │ ├── gradle.properties │ │ └── gradlew.bat │ ├── .buckconfig │ ├── ios │ │ ├── ReactNativeUniversalProject │ │ │ ├── Images.xcassets │ │ │ │ ├── Contents.json │ │ │ │ └── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ ├── AppDelegate.h │ │ │ ├── main.m │ │ │ ├── Info.plist │ │ │ ├── AppDelegate.m │ │ │ └── LaunchScreen.storyboard │ │ ├── ReactNativeUniversalProject.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ ├── ReactNativeUniversalProjectTests │ │ │ ├── Info.plist │ │ │ └── ReactNativeUniversalProjectTests.m │ │ ├── Podfile │ │ └── ReactNativeUniversalProject.xcodeproj │ │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── ReactNativeUniversalProject.xcscheme │ ├── .gitattributes │ ├── .eslintrc.js │ ├── index.js │ ├── .gitignore │ ├── package.json │ └── metro.config.js ├── tv │ ├── .watchmanconfig │ ├── .gitattributes │ ├── app.json │ ├── babel.config.js │ ├── android │ │ ├── app │ │ │ ├── src │ │ │ │ ├── main │ │ │ │ │ ├── res │ │ │ │ │ │ ├── values │ │ │ │ │ │ │ ├── strings.xml │ │ │ │ │ │ │ └── styles.xml │ │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ │ └── mipmap-xxxhdpi │ │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── java │ │ │ │ │ │ └── com │ │ │ │ │ │ │ └── tv │ │ │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ │ │ └── MainApplication.java │ │ │ │ │ └── AndroidManifest.xml │ │ │ │ └── debug │ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ │ └── java │ │ │ │ │ └── com │ │ │ │ │ └── tv │ │ │ │ │ └── ReactNativeFlipper.java │ │ │ ├── debug.keystore │ │ │ ├── proguard-rules.pro │ │ │ ├── build_defs.bzl │ │ │ └── _BUCK │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ └── gradle-wrapper.properties │ │ ├── settings.gradle │ │ ├── build.gradle │ │ ├── gradle.properties │ │ └── gradlew.bat │ ├── ios │ │ ├── tv │ │ │ ├── Images.xcassets │ │ │ │ ├── Contents.json │ │ │ │ └── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ ├── AppDelegate.h │ │ │ ├── main.m │ │ │ ├── Info.plist │ │ │ ├── AppDelegate.m │ │ │ └── LaunchScreen.storyboard │ │ ├── tv.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ ├── tvTests │ │ │ ├── Info.plist │ │ │ └── tvTests.m │ │ ├── tv-tvOSTests │ │ │ └── Info.plist │ │ ├── Podfile │ │ ├── tv-tvOS │ │ │ └── Info.plist │ │ └── tv.xcodeproj │ │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── tv.xcscheme │ │ │ └── tv-tvOS.xcscheme │ ├── .buckconfig │ ├── index.js │ ├── .eslintrc.js │ ├── __tests__ │ │ └── App-test.tsx │ ├── .gitignore │ ├── metro.config.js │ └── package.json ├── windows │ ├── .watchmanconfig │ ├── windows │ │ ├── ReactNativeUniversalProject │ │ │ ├── .gitignore │ │ │ ├── pch.cpp │ │ │ ├── App.idl │ │ │ ├── Assets │ │ │ │ ├── StoreLogo.png │ │ │ │ ├── SplashScreen.scale-200.png │ │ │ │ ├── LockScreenLogo.scale-200.png │ │ │ │ ├── Square44x44Logo.scale-200.png │ │ │ │ ├── Wide310x150Logo.scale-200.png │ │ │ │ ├── Square150x150Logo.scale-200.png │ │ │ │ └── Square44x44Logo.targetsize-24_altform-unplated.png │ │ │ ├── ReactNativeUniversalProject_TemporaryKey.pfx │ │ │ ├── MainPage.idl │ │ │ ├── AutolinkedNativeModules.g.props │ │ │ ├── AutolinkedNativeModules.g.targets │ │ │ ├── packages.config │ │ │ ├── AutolinkedNativeModules.g.h │ │ │ ├── MainPage.h │ │ │ ├── ReactPackageProvider.cpp │ │ │ ├── App.xaml │ │ │ ├── AutolinkedNativeModules.g.cpp │ │ │ ├── MainPage.cpp │ │ │ ├── ReactPackageProvider.h │ │ │ ├── PropertySheet.props │ │ │ ├── pch.h │ │ │ ├── MainPage.xaml │ │ │ ├── App.h │ │ │ ├── Package.appxmanifest │ │ │ ├── ReactNativeUniversalProject.vcxproj.filters │ │ │ └── App.cpp │ │ ├── NuGet.Config │ │ ├── ExperimentalFeatures.props │ │ └── .gitignore │ ├── _editorconfig │ ├── babel.config.js │ ├── app.json │ ├── .gitattributes │ ├── .eslintrc.js │ ├── index.js │ ├── package.json │ ├── .gitignore │ └── metro.config.js ├── app │ ├── src │ │ ├── index.ts │ │ ├── logo.png │ │ ├── config.ts │ │ ├── App.tsx │ │ └── AsyncStorageExample.tsx │ ├── typings │ │ └── imports.d.ts │ ├── .eslintrc.js │ ├── tsconfig.json │ └── package.json ├── next │ ├── app.json │ ├── .eslintrc.js │ ├── next-env.d.ts │ ├── pages │ │ ├── index.tsx │ │ └── _document.tsx │ ├── babel.config.js │ ├── tsconfig.json │ ├── .gitignore │ ├── package.json │ ├── next.config.js │ └── README.md ├── web │ ├── src │ │ ├── react-app-env.d.ts │ │ ├── reportWebVitals.ts │ │ ├── index.css │ │ └── index.tsx │ ├── .eslintrc.js │ ├── public │ │ ├── robots.txt │ │ ├── favicon.ico │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ └── index.html │ ├── .env │ ├── tsconfig.json │ ├── .gitignore │ ├── craco.config.js │ └── package.json ├── browser-ext │ ├── src │ │ ├── react-app-env.d.ts │ │ ├── index.tsx │ │ └── index.css │ ├── .eslintrc.js │ ├── .env │ ├── public │ │ ├── manifest.json │ │ └── index.html │ ├── tsconfig.json │ ├── .gitignore │ ├── craco.config.js │ └── package.json └── electron │ ├── src │ ├── react-app-env.d.ts │ ├── index.tsx │ └── index.css │ ├── .eslintrc.js │ ├── public │ ├── icon.png │ ├── preload.js │ ├── index.html │ └── electron.js │ ├── .env │ ├── tsconfig.json │ ├── .gitignore │ ├── craco.config.js │ └── package.json ├── .github └── images │ ├── tv.png │ └── all-screenshot.png ├── tsconfig.json ├── .gitignore ├── tsconfig.base.json ├── .eslintrc ├── LICENSE └── package.json /packages/macos/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /packages/mobile/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /packages/tv/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /packages/windows/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /packages/tv/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /packages/macos/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /packages/app/src/index.ts: -------------------------------------------------------------------------------- 1 | export { App } from "./App"; 2 | -------------------------------------------------------------------------------- /packages/app/typings/imports.d.ts: -------------------------------------------------------------------------------- 1 | declare module "*.png" -------------------------------------------------------------------------------- /packages/macos/macos/.gitignore: -------------------------------------------------------------------------------- 1 | # CocoaPods 2 | Pods/ 3 | -------------------------------------------------------------------------------- /packages/tv/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tv", 3 | "displayName": "tv" 4 | } -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/.gitignore: -------------------------------------------------------------------------------- 1 | /Bundle 2 | -------------------------------------------------------------------------------- /packages/next/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "next", 3 | "displayName": "next" 4 | } -------------------------------------------------------------------------------- /packages/web/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /packages/browser-ext/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /packages/electron/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /packages/mobile/.editorconfig: -------------------------------------------------------------------------------- 1 | # Windows files 2 | [*.bat] 3 | end_of_line = crlf 4 | -------------------------------------------------------------------------------- /packages/next/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ["../../.eslintrc"], 3 | }; -------------------------------------------------------------------------------- /packages/windows/_editorconfig: -------------------------------------------------------------------------------- 1 | # Windows files 2 | [*.bat] 3 | end_of_line = crlf 4 | -------------------------------------------------------------------------------- /packages/app/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ["../../.eslintrc"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/web/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ["../../.eslintrc"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/browser-ext/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ["../../.eslintrc"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/electron/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ["../../.eslintrc"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/web/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /packages/tv/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/App.idl: -------------------------------------------------------------------------------- 1 | namespace ReactNativeUniversalProject 2 | { 3 | } 4 | -------------------------------------------------------------------------------- /.github/images/tv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/.github/images/tv.png -------------------------------------------------------------------------------- /packages/macos/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /packages/mobile/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /packages/windows/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /packages/app/src/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/app/src/logo.png -------------------------------------------------------------------------------- /packages/macos/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reactnativeuniversalproject", 3 | "displayName": "reactnativeuniversalproject" 4 | } -------------------------------------------------------------------------------- /packages/mobile/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ReactNativeUniversalProject", 3 | "displayName": "ReactNativeUniversalProject" 4 | } -------------------------------------------------------------------------------- /packages/windows/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ReactNativeUniversalProject", 3 | "displayName": "ReactNativeUniversalProject" 4 | } -------------------------------------------------------------------------------- /packages/tv/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | tv 3 | 4 | -------------------------------------------------------------------------------- /packages/tv/ios/tv/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/web/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/web/public/favicon.ico -------------------------------------------------------------------------------- /packages/web/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/web/public/logo192.png -------------------------------------------------------------------------------- /packages/web/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/web/public/logo512.png -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "extends": "./tsconfig.base.json", 4 | "include": ["**/*.ts", "**/*.tsx"], 5 | "exclude": ["node_modules"] 6 | } -------------------------------------------------------------------------------- /.github/images/all-screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/.github/images/all-screenshot.png -------------------------------------------------------------------------------- /packages/electron/public/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/electron/public/icon.png -------------------------------------------------------------------------------- /packages/app/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "include": ["typings", "src"], 4 | "exclude": ["node_modules"], 5 | } -------------------------------------------------------------------------------- /packages/tv/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/tv/android/app/debug.keystore -------------------------------------------------------------------------------- /packages/mobile/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/mobile/android/app/debug.keystore -------------------------------------------------------------------------------- /packages/mobile/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ReactNativeUniversalProject 3 | 4 | -------------------------------------------------------------------------------- /packages/tv/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /packages/macos/macos/reactnativeuniversalproject-macOS/ViewController.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface ViewController : NSViewController 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /packages/mobile/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /packages/mobile/ios/ReactNativeUniversalProject/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/web/.env: -------------------------------------------------------------------------------- 1 | # Necessary to avoid complaint about hoisted jest version 2 | # Similar to: https://github.com/facebook/jest/issues/10544 3 | SKIP_PREFLIGHT_CHECK=true -------------------------------------------------------------------------------- /packages/electron/.env: -------------------------------------------------------------------------------- 1 | # Necessary to avoid complaint about hoisted jest version 2 | # Similar to: https://github.com/facebook/jest/issues/10544 3 | SKIP_PREFLIGHT_CHECK=true -------------------------------------------------------------------------------- /packages/macos/macos/reactnativeuniversalproject-iOS/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/macos/macos/reactnativeuniversalproject-macOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/mobile/.gitattributes: -------------------------------------------------------------------------------- 1 | # Windows files should use crlf line endings 2 | # https://help.github.com/articles/dealing-with-line-endings/ 3 | *.bat text eol=crlf 4 | -------------------------------------------------------------------------------- /packages/windows/.gitattributes: -------------------------------------------------------------------------------- 1 | # Windows files should use crlf line endings 2 | # https://help.github.com/articles/dealing-with-line-endings/ 3 | *.bat text eol=crlf 4 | -------------------------------------------------------------------------------- /packages/browser-ext/.env: -------------------------------------------------------------------------------- 1 | # Necessary to avoid complaint about hoisted jest version 2 | # Similar to: https://github.com/facebook/jest/issues/10544 3 | SKIP_PREFLIGHT_CHECK=true -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.jsbundle 2 | *.tsbuildinfo 3 | .DS_Store 4 | .history 5 | .jest 6 | .next 7 | .vscode 8 | node_modules 9 | npm-debug.log* 10 | yarn-debug.log* 11 | yarn-error.log* -------------------------------------------------------------------------------- /packages/tv/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/tv/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /packages/macos/macos/reactnativeuniversalproject-macOS/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | int main(int argc, const char *argv[]) { 4 | return NSApplicationMain(argc, argv); 5 | } 6 | -------------------------------------------------------------------------------- /packages/mobile/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/mobile/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /packages/browser-ext/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "My Extension", 3 | "version": "1.0.0", 4 | "manifest_version": 2, 5 | "browser_action": { 6 | "default_popup": "index.html" 7 | } 8 | } -------------------------------------------------------------------------------- /packages/tv/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/tv/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/tv/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/tv/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/tv/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/tv/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/tv/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/tv/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/tv/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/tv/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/tv/index.js: -------------------------------------------------------------------------------- 1 | import {AppRegistry} from 'react-native'; 2 | import {App} from '@my-app/app'; 3 | import {name as appName} from './app.json'; 4 | 5 | AppRegistry.registerComponent(appName, () => App); 6 | -------------------------------------------------------------------------------- /packages/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/tv/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ["../../.eslintrc"], 3 | "overrides": [ 4 | { 5 | "files": "./index.js", 6 | "parser": "babel-eslint" 7 | } 8 | ], 9 | }; 10 | -------------------------------------------------------------------------------- /packages/tv/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/tv/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/tv/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/tv/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/macos/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ["../../.eslintrc"], 3 | "overrides": [ 4 | { 5 | "files": "./index.js", 6 | "parser": "babel-eslint" 7 | } 8 | ], 9 | }; 10 | -------------------------------------------------------------------------------- /packages/macos/index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from "react-native"; 2 | import { App } from "@my-app/app"; 3 | import { name as appName } from "./app.json"; 4 | 5 | AppRegistry.registerComponent(appName, () => App); 6 | -------------------------------------------------------------------------------- /packages/mobile/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ["../../.eslintrc"], 3 | "overrides": [ 4 | { 5 | "files": "./index.js", 6 | "parser": "babel-eslint" 7 | } 8 | ], 9 | }; 10 | -------------------------------------------------------------------------------- /packages/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/mobile/index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from "react-native"; 2 | import { App } from "@my-app/app"; 3 | import { name as appName } from "./app.json"; 4 | 5 | AppRegistry.registerComponent(appName, () => App); 6 | -------------------------------------------------------------------------------- /packages/tv/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/tv/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/tv/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/tv/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/windows/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ["../../.eslintrc"], 3 | "overrides": [ 4 | { 5 | "files": "./index.js", 6 | "parser": "babel-eslint" 7 | } 8 | ], 9 | }; 10 | -------------------------------------------------------------------------------- /packages/windows/index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from "react-native"; 2 | import { App } from "@my-app/app"; 3 | import { name as appName } from "./app.json"; 4 | 5 | AppRegistry.registerComponent(appName, () => App); 6 | -------------------------------------------------------------------------------- /packages/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/tv/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/tv/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/windows/windows/ReactNativeUniversalProject/Assets/StoreLogo.png -------------------------------------------------------------------------------- /packages/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/tv/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'tv' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | -------------------------------------------------------------------------------- /packages/next/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | // NOTE: This file should not be edited 5 | // see https://nextjs.org/docs/basic-features/typescript for more information. 6 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/windows/windows/ReactNativeUniversalProject/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/windows/windows/ReactNativeUniversalProject/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/windows/windows/ReactNativeUniversalProject/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/windows/windows/ReactNativeUniversalProject/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /packages/mobile/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'ReactNativeUniversalProject' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | -------------------------------------------------------------------------------- /packages/tv/ios/tv/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : UIResponder 5 | 6 | @property (nonatomic, strong) UIWindow *window; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/windows/windows/ReactNativeUniversalProject/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /packages/tv/ios/tv/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/ReactNativeUniversalProject_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/windows/windows/ReactNativeUniversalProject/ReactNativeUniversalProject_TemporaryKey.pfx -------------------------------------------------------------------------------- /packages/macos/macos/reactnativeuniversalproject-macOS/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class RCTBridge; 4 | 5 | @interface AppDelegate : NSObject 6 | 7 | @property (nonatomic, readonly) RCTBridge *bridge; 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /packages/tv/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /packages/mobile/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /packages/next/pages/index.tsx: -------------------------------------------------------------------------------- 1 | // Many libraries in the React ecosystem use the setImmediate() API (like react-native-reanimated), 2 | // which Next.js doesn't polyfill by default. 3 | import 'setimmediate'; 4 | 5 | import { App } from '@my-app/app'; 6 | 7 | export default App; 8 | -------------------------------------------------------------------------------- /packages/mobile/ios/ReactNativeUniversalProject/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : UIResponder 5 | 6 | @property (nonatomic, strong) UIWindow *window; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /packages/next/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['next/babel'], 3 | plugins: [ 4 | ['react-native-web', { commonjs: true }], 5 | ['transform-define', { 6 | '__DEV__': process.env.NODE_ENV, 7 | '__SUBPLATFORM__': 'next', 8 | }] 9 | ], 10 | } -------------------------------------------------------------------------------- /packages/macos/macos/reactnativeuniversalproject-iOS/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : UIResponder 5 | 6 | @property (nonatomic, strong) UIWindow *window; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmazzarolo/react-native-universal-monorepo/HEAD/packages/windows/windows/ReactNativeUniversalProject/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /packages/mobile/ios/ReactNativeUniversalProject/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/macos/macos/reactnativeuniversalproject-iOS/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/MainPage.idl: -------------------------------------------------------------------------------- 1 | #include "NamespaceRedirect.h" 2 | 3 | namespace ReactNativeUniversalProject 4 | { 5 | [default_interface] 6 | runtimeclass MainPage : XAML_NAMESPACE.Controls.Page 7 | { 8 | MainPage(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /packages/electron/src/index.tsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | import "./index.css"; 4 | import { App } from "@my-app/app"; 5 | 6 | ReactDOM.render( 7 | 8 | 9 | , 10 | document.getElementById("root") 11 | ); 12 | 13 | -------------------------------------------------------------------------------- /packages/browser-ext/src/index.tsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | import "./index.css"; 4 | import { App } from "@my-app/app"; 5 | 6 | ReactDOM.render( 7 | 8 | 9 | , 10 | document.getElementById("root") 11 | ); 12 | 13 | -------------------------------------------------------------------------------- /packages/next/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "jsx": "preserve", 5 | "module": "esnext" 6 | }, 7 | "include": [ 8 | "next-env.d.ts", 9 | "public", 10 | "pages" 11 | ], 12 | "exclude": [ 13 | "node_modules" 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /packages/tv/ios/tv.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /packages/tv/ios/tv.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/tv/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /packages/mobile/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /packages/macos/macos/reactnativeuniversalproject.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/AutolinkedNativeModules.g.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/AutolinkedNativeModules.g.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/tv/__tests__/App-test.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /packages/macos/macos/reactnativeuniversalproject.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /packages/mobile/ios/ReactNativeUniversalProject.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /packages/web/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "jsx": "react-jsx", 5 | "lib": [ 6 | "DOM", 7 | "DOM.Iterable", 8 | "esnext" 9 | ], 10 | "noFallthroughCasesInSwitch": true, 11 | "module": "esnext" 12 | }, 13 | "include": [ 14 | "public", 15 | "src" 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /packages/browser-ext/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "jsx": "react-jsx", 5 | "lib": [ 6 | "DOM", 7 | "DOM.Iterable", 8 | "esnext" 9 | ], 10 | "noFallthroughCasesInSwitch": true, 11 | "module": "esnext" 12 | }, 13 | "include": [ 14 | "public", 15 | "src" 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /packages/electron/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "jsx": "react-jsx", 5 | "lib": [ 6 | "DOM", 7 | "DOM.Iterable", 8 | "esnext" 9 | ], 10 | "noFallthroughCasesInSwitch": true, 11 | "module": "esnext" 12 | }, 13 | "include": [ 14 | "public", 15 | "src" 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/tv/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/web/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /packages/browser-ext/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /packages/electron/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | /dist 14 | 15 | # misc 16 | .DS_Store 17 | .env.local 18 | .env.development.local 19 | .env.test.local 20 | .env.production.local 21 | 22 | npm-debug.log* 23 | yarn-debug.log* 24 | yarn-error.log* 25 | -------------------------------------------------------------------------------- /packages/tv/android/app/src/main/java/com/tv/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.tv; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. This is used to schedule 9 | * rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "tv"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /packages/web/src/reportWebVitals.ts: -------------------------------------------------------------------------------- 1 | const reportWebVitals = (onPerfEntry?: any) => { 2 | if (onPerfEntry && onPerfEntry instanceof Function) { 3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { 4 | getCLS(onPerfEntry); 5 | getFID(onPerfEntry); 6 | getFCP(onPerfEntry); 7 | getLCP(onPerfEntry); 8 | getTTFB(onPerfEntry); 9 | }); 10 | } 11 | }; 12 | 13 | export default reportWebVitals; 14 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/AutolinkedNativeModules.g.h: -------------------------------------------------------------------------------- 1 | // AutolinkedNativeModules.g.h contents generated by "react-native autolink-windows" 2 | // clang-format off 3 | #pragma once 4 | 5 | namespace winrt::Microsoft::ReactNative 6 | { 7 | 8 | void RegisterAutolinkedNativeModulePackages(winrt::Windows::Foundation::Collections::IVector const& packageProviders); 9 | 10 | } 11 | -------------------------------------------------------------------------------- /packages/electron/public/preload.js: -------------------------------------------------------------------------------- 1 | // All of the Node.js APIs are available in the preload process. 2 | // It has the same sandbox as a Chrome extension. 3 | const { contextBridge } = require("electron"); 4 | 5 | // As an example, here we use the exposeInMainWorld API to expose the browsers 6 | // and node versions to the main window. 7 | // They'll be accessible at "window.versions". 8 | process.once("loaded", () => { 9 | contextBridge.exposeInMainWorld("versions", process.versions); 10 | }); -------------------------------------------------------------------------------- /packages/web/src/index.css: -------------------------------------------------------------------------------- 1 | html, body, #root { 2 | height: 100%; 3 | } 4 | 5 | body { 6 | margin: 0; 7 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 8 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 9 | sans-serif; 10 | -webkit-font-smoothing: antialiased; 11 | -moz-osx-font-smoothing: grayscale; 12 | } 13 | 14 | code { 15 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 16 | monospace; 17 | } 18 | -------------------------------------------------------------------------------- /packages/electron/src/index.css: -------------------------------------------------------------------------------- 1 | html, body, #root { 2 | height: 100%; 3 | } 4 | 5 | body { 6 | margin: 0; 7 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 8 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 9 | sans-serif; 10 | -webkit-font-smoothing: antialiased; 11 | -moz-osx-font-smoothing: grayscale; 12 | } 13 | 14 | code { 15 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 16 | monospace; 17 | } 18 | -------------------------------------------------------------------------------- /packages/macos/macos/reactnativeuniversalproject-macOS/reactnativeuniversalproject.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.files.user-selected.read-only 8 | 9 | com.apple.security.network.client 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /packages/browser-ext/src/index.css: -------------------------------------------------------------------------------- 1 | html, body, #root { 2 | height: 100%; 3 | } 4 | 5 | body { 6 | margin: 0; 7 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 8 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 9 | sans-serif; 10 | -webkit-font-smoothing: antialiased; 11 | -moz-osx-font-smoothing: grayscale; 12 | } 13 | 14 | code { 15 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 16 | monospace; 17 | } 18 | -------------------------------------------------------------------------------- /packages/tv/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /packages/mobile/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /packages/mobile/android/app/src/main/java/com/reactnativeuniversalproject/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.reactnativeuniversalproject; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. This is used to schedule 9 | * rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "ReactNativeUniversalProject"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/MainPage.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "MainPage.g.h" 3 | #include 4 | 5 | namespace winrt::ReactNativeUniversalProject::implementation 6 | { 7 | struct MainPage : MainPageT 8 | { 9 | MainPage(); 10 | }; 11 | } 12 | 13 | namespace winrt::ReactNativeUniversalProject::factory_implementation 14 | { 15 | struct MainPage : MainPageT 16 | { 17 | }; 18 | } 19 | 20 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/ReactPackageProvider.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #include "ReactPackageProvider.h" 3 | #include "NativeModules.h" 4 | 5 | using namespace winrt::Microsoft::ReactNative; 6 | 7 | namespace winrt::ReactNativeUniversalProject::implementation 8 | { 9 | 10 | void ReactPackageProvider::CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept 11 | { 12 | AddAttributedModules(packageBuilder); 13 | } 14 | 15 | } // namespace winrt::ReactNativeUniversalProject::implementation 16 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/App.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /tsconfig.base.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowJs": true, 4 | "allowSyntheticDefaultImports": true, 5 | "esModuleInterop": true, 6 | "forceConsistentCasingInFileNames": true, 7 | "isolatedModules": true, 8 | "jsx": "react", 9 | "lib": ["es2017"], 10 | "moduleResolution": "node", 11 | "noEmit": true, 12 | "resolveJsonModule": true, 13 | "strict": true, 14 | // Solves https://github.com/DefinitelyTyped/DefinitelyTyped/issues/16825 15 | "skipLibCheck": true, 16 | "target": "esnext" 17 | } 18 | } -------------------------------------------------------------------------------- /packages/next/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # next.js 12 | /.next/ 13 | /out/ 14 | 15 | # production 16 | /build 17 | 18 | # misc 19 | .DS_Store 20 | *.pem 21 | 22 | # debug 23 | npm-debug.log* 24 | yarn-debug.log* 25 | yarn-error.log* 26 | 27 | # local env files 28 | .env.local 29 | .env.development.local 30 | .env.test.local 31 | .env.production.local 32 | 33 | # vercel 34 | .vercel 35 | -------------------------------------------------------------------------------- /packages/windows/windows/NuGet.Config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/AutolinkedNativeModules.g.cpp: -------------------------------------------------------------------------------- 1 | // AutolinkedNativeModules.g.cpp contents generated by "react-native autolink-windows" 2 | // clang-format off 3 | #include "pch.h" 4 | #include "AutolinkedNativeModules.g.h" 5 | 6 | namespace winrt::Microsoft::ReactNative 7 | { 8 | 9 | void RegisterAutolinkedNativeModulePackages(winrt::Windows::Foundation::Collections::IVector const& packageProviders) 10 | { 11 | UNREFERENCED_PARAMETER(packageProviders); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/MainPage.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #include "MainPage.h" 3 | #if __has_include("MainPage.g.cpp") 4 | #include "MainPage.g.cpp" 5 | #endif 6 | 7 | #include "App.h" 8 | 9 | using namespace winrt; 10 | using namespace xaml; 11 | 12 | namespace winrt::ReactNativeUniversalProject::implementation 13 | { 14 | MainPage::MainPage() 15 | { 16 | InitializeComponent(); 17 | auto app = Application::Current().as(); 18 | ReactRootView().ReactNativeHost(app->Host()); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /packages/mobile/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /packages/web/src/index.tsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | import "./index.css"; 4 | import { App } from "@my-app/app"; 5 | import reportWebVitals from "./reportWebVitals"; 6 | 7 | ReactDOM.render( 8 | 9 | 10 | , 11 | document.getElementById("root") 12 | ); 13 | 14 | // If you want to start measuring performance in your app, pass a function 15 | // to log results (for example: reportWebVitals(console.log)) 16 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals 17 | reportWebVitals(); 18 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/ReactPackageProvider.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "winrt/Microsoft.ReactNative.h" 4 | 5 | namespace winrt::ReactNativeUniversalProject::implementation 6 | { 7 | struct ReactPackageProvider : winrt::implements 8 | { 9 | public: // IReactPackageProvider 10 | void CreatePackage(winrt::Microsoft::ReactNative::IReactPackageBuilder const &packageBuilder) noexcept; 11 | }; 12 | } // namespace winrt::ReactNativeUniversalProject::implementation 13 | 14 | -------------------------------------------------------------------------------- /packages/web/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /packages/app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@my-app/app", 3 | "version": "0.0.0", 4 | "private": true, 5 | "main": "src", 6 | "scripts": { 7 | "lint": "eslint .", 8 | "lint:fix": "yarn lint --fix", 9 | "test": "jest --passWithNoTests", 10 | "test:watch": "yarn jest --watch", 11 | "typecheck": "tsc" 12 | }, 13 | "devDependencies": { 14 | "@react-native-async-storage/async-storage": "^1.15.7", 15 | "@types/react": "^17.0.19", 16 | "@types/react-native": "^0.64.13", 17 | "typescript": "^4.4.2" 18 | }, 19 | "peerDependencies": { 20 | "@react-native-async-storage/async-storage": "*", 21 | "react": "*", 22 | "react-native": "*" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /packages/tv/android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /packages/mobile/android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/PropertySheet.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /packages/app/src/config.ts: -------------------------------------------------------------------------------- 1 | import { Platform } from 'react-native'; 2 | 3 | // eslint-disable-next-line 4 | declare var __SUBPLATFORM__: "electron" | "browser-ext" | "android-tv" | "tvos" | "next" | undefined; 5 | 6 | export const isDev = __DEV__; 7 | 8 | // Tells on what variant of the platform we're running 9 | export let subplatform: typeof __SUBPLATFORM__ = undefined; 10 | 11 | // Injected in electron and browser-extension builds. 12 | if (typeof __SUBPLATFORM__ === "string") { 13 | subplatform = __SUBPLATFORM__ 14 | } 15 | // For tvOS and Android TV, we can check the Platform.isTV field 16 | else if (Platform.isTV && Platform.OS === "ios") { 17 | subplatform = "tvos"; 18 | } else if (Platform.isTV && Platform.OS === "android") { 19 | subplatform = "android-tv"; 20 | } 21 | -------------------------------------------------------------------------------- /packages/windows/windows/ExperimentalFeatures.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 11 | false 12 | 13 | 19 | false 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /packages/web/craco.config.js: -------------------------------------------------------------------------------- 1 | const webpack = require("webpack"); 2 | const { getWebpackTools } = require("react-native-monorepo-tools"); 3 | 4 | const monorepoWebpackTools = getWebpackTools(); 5 | 6 | module.exports = { 7 | webpack: { 8 | configure: (webpackConfig) => { 9 | // Allow importing from external workspaces. 10 | monorepoWebpackTools.enableWorkspacesResolution(webpackConfig); 11 | // Ensure nohoisted libraries are resolved from this workspace. 12 | monorepoWebpackTools.addNohoistAliases(webpackConfig); 13 | return webpackConfig; 14 | }, 15 | plugins: [ 16 | // Inject the "__DEV__" global variable. 17 | new webpack.DefinePlugin({ 18 | __DEV__: process.env.NODE_ENV !== "production", 19 | }) 20 | ], 21 | }, 22 | }; 23 | -------------------------------------------------------------------------------- /packages/tv/ios/tv/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /packages/macos/macos/reactnativeuniversalproject-macOS/ViewController.m: -------------------------------------------------------------------------------- 1 | #import "ViewController.h" 2 | #import "AppDelegate.h" 3 | 4 | #import 5 | 6 | @implementation ViewController 7 | 8 | - (void)viewDidLoad { 9 | [super viewDidLoad]; 10 | 11 | RCTBridge *bridge = [((AppDelegate *)[NSApp delegate])bridge]; 12 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"reactnativeuniversalproject" initialProperties:nil]; 13 | 14 | NSView *view = [self view]; 15 | 16 | [view addSubview:rootView]; 17 | [rootView setBackgroundColor:[NSColor windowBackgroundColor]]; 18 | [rootView setFrame:[view bounds]]; 19 | [rootView setAutoresizingMask:(NSViewMinXMargin | NSViewMinXMargin | NSViewMinYMargin | NSViewMaxYMargin | NSViewWidthSizable | NSViewHeightSizable)]; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /packages/mobile/ios/ReactNativeUniversalProject/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /packages/macos/macos/reactnativeuniversalproject-iOS/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #define NOMINMAX 4 | 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | #include 17 | 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | using namespace winrt::Windows::Foundation; 24 | -------------------------------------------------------------------------------- /packages/tv/ios/tvTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /packages/tv/ios/tv-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/MainPage.xaml: -------------------------------------------------------------------------------- 1 | 11 | 16 | 17 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "ignorePatterns": ["**/*.d.ts"], 4 | "overrides": [ 5 | { 6 | "files": "**/*.+(ts|tsx)", 7 | "parser": "@typescript-eslint/parser", 8 | "plugins": ["@typescript-eslint", "react-native"], 9 | "extends": [ 10 | "plugin:react/recommended", 11 | "prettier", 12 | "plugin:@typescript-eslint/eslint-recommended", 13 | "plugin:@typescript-eslint/recommended" 14 | ] 15 | }, 16 | { 17 | "files": "**/*.+(js|jsx)", 18 | "env": { 19 | "commonjs": true, 20 | "es6": true, 21 | "node": true 22 | }, 23 | "parserOptions": { 24 | "ecmaVersion": 2018 25 | }, 26 | "extends": ["eslint:recommended", "prettier"] 27 | } 28 | ], 29 | "settings": { 30 | "react": { 31 | "version": "detect" 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /packages/mobile/ios/ReactNativeUniversalProjectTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /packages/next/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@my-app/next", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "dev": "next dev", 7 | "build": "next build", 8 | "start": "next start", 9 | "lint": "next lint" 10 | }, 11 | "dependencies": { 12 | "@my-app/app": "*", 13 | "@react-native-async-storage/async-storage": "^1.15.8", 14 | "next": "11.1.2", 15 | "next-fonts": "^1.5.1", 16 | "next-images": "^1.8.1", 17 | "react": "17.0.2", 18 | "react-dom": "17.0.2", 19 | "react-native": "0.65.1", 20 | "react-native-web": "^0.17.1", 21 | "setimmediate": "^1.0.5" 22 | }, 23 | "devDependencies": { 24 | "@types/react": "17.0.24", 25 | "@types/react-native": "^0.65.2", 26 | "babel-plugin-react-native-web": "^0.17.1", 27 | "babel-plugin-transform-define": "^2.0.1", 28 | "typescript": "^4.4.3" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /packages/macos/macos/reactnativeuniversalproject-macOS/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | 6 | @interface AppDelegate () 7 | 8 | @end 9 | 10 | @implementation AppDelegate 11 | 12 | - (void)awakeFromNib { 13 | [super awakeFromNib]; 14 | 15 | _bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:nil]; 16 | } 17 | 18 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { 19 | // Insert code here to initialize your application 20 | } 21 | 22 | - (void)applicationWillTerminate:(NSNotification *)aNotification { 23 | // Insert code here to tear down your application 24 | } 25 | 26 | #pragma mark - RCTBridgeDelegate Methods 27 | 28 | - (NSURL *)sourceURLForBridge:(__unused RCTBridge *)bridge { 29 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:@"main"]; // .jsbundle; 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /packages/windows/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@my-app/windows", 3 | "version": "0.0.0", 4 | "private": true, 5 | "scripts": { 6 | "start": "react-native start", 7 | "windows": "react-native run-windows", 8 | "lint": "eslint .", 9 | "lint:fix": "yarn lint --fix", 10 | "test": "jest --passWithNoTests" 11 | }, 12 | "dependencies": { 13 | "@my-app/app": "*", 14 | "@react-native-async-storage/async-storage": "^1.15.7", 15 | "react": "17.0.2", 16 | "react-native": "0.65.0", 17 | "react-native-windows": "0.65.2" 18 | }, 19 | "devDependencies": { 20 | "@babel/core": "^7.12.9", 21 | "@babel/runtime": "^7.12.5", 22 | "babel-jest": "^26.6.3", 23 | "eslint": "7.14.0", 24 | "jest": "^26.6.3", 25 | "metro-react-native-babel-preset": "^0.66.0", 26 | "react-native-codegen": "^0.0.7", 27 | "react-native-monorepo-tools": "^1.1.0", 28 | "react-test-renderer": "17.0.1" 29 | }, 30 | "jest": { 31 | "preset": "react-native" 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /packages/windows/windows/ReactNativeUniversalProject/App.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "App.xaml.g.h" 4 | 5 | #include 6 | 7 | #ifdef USE_WINUI3 8 | namespace activation = winrt::Microsoft::UI::Xaml; 9 | #else 10 | namespace activation = winrt::Windows::ApplicationModel::Activation; 11 | #endif 12 | 13 | namespace winrt::ReactNativeUniversalProject::implementation 14 | { 15 | struct App : AppT 16 | { 17 | App() noexcept; 18 | void OnLaunched(activation::LaunchActivatedEventArgs const&); 19 | void OnActivated(Windows::ApplicationModel::Activation::IActivatedEventArgs const &e); 20 | void OnSuspending(IInspectable const&, Windows::ApplicationModel::SuspendingEventArgs const&); 21 | void OnNavigationFailed(IInspectable const&, xaml::Navigation::NavigationFailedEventArgs const&); 22 | private: 23 | using super = AppT; 24 | }; 25 | } // namespace winrt::ReactNativeUniversalProject::implementation 26 | -------------------------------------------------------------------------------- /packages/macos/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@my-app/macos", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "macos": "react-native run-macos", 7 | "xcode": "xed macos", 8 | "start": "react-native start", 9 | "pods": "pod-install", 10 | "lint": "eslint .", 11 | "lint:fix": "yarn lint --fix", 12 | "test": "jest --passWithNoTests" 13 | }, 14 | "dependencies": { 15 | "@my-app/app": "*", 16 | "@react-native-async-storage/async-storage": "^1.15.7", 17 | "react": "16.13.1", 18 | "react-native": "0.63.0", 19 | "react-native-macos": "^0.63.0-0" 20 | }, 21 | "devDependencies": { 22 | "@babel/core": "^7.8.4", 23 | "@babel/runtime": "^7.8.4", 24 | "babel-jest": "^25.1.0", 25 | "jest": "^25.1.0", 26 | "metro-react-native-babel-preset": "^0.59.0", 27 | "pod-install": "0.1.27", 28 | "react-native-monorepo-tools": "^1.1.0", 29 | "react-test-renderer": "16.13.1" 30 | }, 31 | "jest": { 32 | "preset": "react-native" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /packages/macos/metro.config.js: -------------------------------------------------------------------------------- 1 | const exclusionList = require("metro-config/src/defaults/exclusionList"); 2 | const { getMetroTools } = require("react-native-monorepo-tools"); 3 | 4 | // Get the metro settings to make it compatible with Yarn workspaces. 5 | const monorepoMetroTools = getMetroTools({ 6 | reactNativeAlias: "react-native-macos", 7 | }); 8 | 9 | module.exports = { 10 | transformer: { 11 | getTransformOptions: async () => ({ 12 | transform: { 13 | experimentalImportSupport: false, 14 | inlineRequires: false, // Required for macos and windows builds. 15 | }, 16 | }), 17 | }, 18 | // Add additional Yarn workspace package roots to the module map. 19 | // This allows importing from any workspace. 20 | watchFolders: monorepoMetroTools.watchFolders, 21 | resolver: { 22 | // Ensure we resolve nohoist libraries from this directory. 23 | blacklistRE: exclusionList(monorepoMetroTools.blockList), 24 | extraNodeModules: monorepoMetroTools.extraNodeModules, 25 | }, 26 | }; 27 | -------------------------------------------------------------------------------- /packages/electron/craco.config.js: -------------------------------------------------------------------------------- 1 | const webpack = require("webpack"); 2 | const { getWebpackTools } = require("react-native-monorepo-tools"); 3 | 4 | const monorepoWebpackTools = getWebpackTools(); 5 | 6 | module.exports = { 7 | webpack: { 8 | configure: (webpackConfig) => { 9 | // Allow importing from external workspaces. 10 | monorepoWebpackTools.enableWorkspacesResolution(webpackConfig); 11 | // Ensure nohoisted libraries are resolved from this workspace. 12 | monorepoWebpackTools.addNohoistAliases(webpackConfig); 13 | return webpackConfig; 14 | }, 15 | plugins: [ 16 | // Inject the "__DEV__" global variable. 17 | new webpack.DefinePlugin({ 18 | __DEV__: process.env.NODE_ENV !== "production", 19 | }), 20 | // Inject the "__SUBPLATFORM__" global variable. 21 | // It can be used to determine whether we're running within Electron or not. 22 | new webpack.DefinePlugin({ 23 | __SUBPLATFORM__: JSON.stringify("electron"), 24 | }), 25 | ], 26 | }, 27 | }; 28 | -------------------------------------------------------------------------------- /packages/macos/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | yarn-error.log 37 | 38 | # BUCK 39 | buck-out/ 40 | \.buckd/ 41 | *.keystore 42 | !debug.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | -------------------------------------------------------------------------------- /packages/browser-ext/craco.config.js: -------------------------------------------------------------------------------- 1 | const webpack = require("webpack"); 2 | const { getWebpackTools } = require("react-native-monorepo-tools"); 3 | 4 | const monorepoWebpackTools = getWebpackTools(); 5 | 6 | module.exports = { 7 | webpack: { 8 | configure: (webpackConfig) => { 9 | // Allow importing from external workspaces. 10 | monorepoWebpackTools.enableWorkspacesResolution(webpackConfig); 11 | // Ensure nohoisted libraries are resolved from this workspace. 12 | monorepoWebpackTools.addNohoistAliases(webpackConfig); 13 | return webpackConfig; 14 | }, 15 | plugins: [ 16 | // Inject the "__DEV__" global variable. 17 | new webpack.DefinePlugin({ 18 | __DEV__: process.env.NODE_ENV !== "production", 19 | }), 20 | // Inject the "__SUBPLATFORM__" global variable. 21 | // It can be used to determine whether we're running within a 22 | // browser extension or not. 23 | new webpack.DefinePlugin({ 24 | __SUBPLATFORM__: JSON.stringify("browser-ext"), 25 | }), 26 | ], 27 | }, 28 | }; 29 | -------------------------------------------------------------------------------- /packages/mobile/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /packages/mobile/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | yarn-error.log 37 | 38 | # BUCK 39 | buck-out/ 40 | \.buckd/ 41 | *.keystore 42 | !debug.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # CocoaPods 59 | /ios/Pods/ 60 | -------------------------------------------------------------------------------- /packages/windows/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | yarn-error.log 37 | 38 | # BUCK 39 | buck-out/ 40 | \.buckd/ 41 | *.keystore 42 | !debug.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # CocoaPods 59 | /ios/Pods/ 60 | -------------------------------------------------------------------------------- /packages/tv/ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | source 'https://github.com/react-native-tvos/react-native-tvos-podspecs.git' 5 | source 'https://cdn.cocoapods.org/' 6 | 7 | target 'tv' do 8 | 9 | platform :ios, '10.0' 10 | 11 | config = use_native_modules! 12 | 13 | use_react_native!( 14 | :path => config[:reactNativePath], 15 | # to enable hermes on iOS, change `false` to `true` and then install pods 16 | :hermes_enabled => false 17 | ) 18 | 19 | target 'tvTests' do 20 | inherit! :complete 21 | # Pods for testing 22 | end 23 | 24 | end 25 | 26 | target 'tv-tvOS' do 27 | 28 | platform :tvos, '12.0' 29 | 30 | config = use_native_modules! 31 | 32 | # Hermes not yet available on tvOS 33 | use_react_native!(:path => config["reactNativePath"]) 34 | 35 | target 'tv-tvOSTests' do 36 | inherit! :complete 37 | # Pods for testing 38 | end 39 | 40 | end 41 | 42 | post_install do |installer| 43 | flipper_post_install(installer) 44 | end 45 | -------------------------------------------------------------------------------- /packages/mobile/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@my-app/mobile", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "studio": "studio android", 10 | "xcode": "xed ios", 11 | "pods": "pod-install", 12 | "lint": "eslint .", 13 | "lint:fix": "yarn lint --fix", 14 | "test": "jest --passWithNoTests" 15 | }, 16 | "dependencies": { 17 | "@my-app/app": "*", 18 | "@react-native-async-storage/async-storage": "^1.15.7", 19 | "react": "17.0.2", 20 | "react-native": "0.65.1" 21 | }, 22 | "devDependencies": { 23 | "@babel/core": "^7.12.9", 24 | "@babel/runtime": "^7.12.5", 25 | "babel-jest": "^26.6.3", 26 | "jest": "^26.6.3", 27 | "metro-config": "^0.66.2", 28 | "metro-react-native-babel-preset": "^0.66.0", 29 | "pod-install": "0.1.27", 30 | "react-native-codegen": "^0.0.7", 31 | "react-native-monorepo-tools": "^1.1.0", 32 | "react-test-renderer": "17.0.2" 33 | }, 34 | "jest": { 35 | "preset": "react-native" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Matteo Mazzarolo 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/tv/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # Visual Studio Code 33 | # 34 | .vscode/ 35 | 36 | # node.js 37 | # 38 | node_modules/ 39 | npm-debug.log 40 | yarn-error.log 41 | 42 | # BUCK 43 | buck-out/ 44 | \.buckd/ 45 | *.keystore 46 | !debug.keystore 47 | 48 | # fastlane 49 | # 50 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 51 | # screenshots whenever they are needed. 52 | # For more information about the recommended setup visit: 53 | # https://docs.fastlane.tools/best-practices/source-control/ 54 | 55 | */fastlane/report.xml 56 | */fastlane/Preview.html 57 | */fastlane/screenshots 58 | 59 | # Bundle artifact 60 | *.jsbundle 61 | 62 | # CocoaPods 63 | /ios/Pods/ 64 | -------------------------------------------------------------------------------- /packages/tv/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /packages/macos/macos/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native-macos/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | target 'reactnativeuniversalproject-macOS' do 5 | platform :macos, '10.14' 6 | use_native_modules! 7 | use_react_native!( 8 | :path => '../node_modules/react-native-macos', 9 | 10 | # To use Hermes, install the `hermes-engine-darwin` npm package, e.g.: 11 | # $ yarn add 'hermes-engine-darwin@~0.5.3' 12 | # 13 | # Then enable this option: 14 | # :hermes_enabled => true 15 | ) 16 | 17 | # Pods specifically for macOS target 18 | end 19 | 20 | target 'reactnativeuniversalproject-iOS' do 21 | platform :ios, '10' 22 | use_native_modules! 23 | use_react_native!(:path => '../node_modules/react-native-macos') 24 | 25 | # Enables Flipper. 26 | # 27 | # Note that if you have use_frameworks! enabled, Flipper will not work and 28 | # you should disable these next few lines. 29 | use_flipper! 30 | post_install do |installer| 31 | flipper_post_install(installer) 32 | end 33 | 34 | # Pods specifically for iOS target 35 | end 36 | -------------------------------------------------------------------------------- /packages/tv/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "29.0.2" 6 | minSdkVersion = 16 7 | compileSdkVersion = 29 8 | targetSdkVersion = 29 9 | } 10 | repositories { 11 | google() 12 | jcenter() 13 | } 14 | dependencies { 15 | classpath("com.android.tools.build:gradle:3.5.3") 16 | // NOTE: Do not place your application dependencies here; they belong 17 | // in the individual module build.gradle files 18 | } 19 | } 20 | 21 | allprojects { 22 | repositories { 23 | mavenLocal() 24 | maven { 25 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 26 | url("$rootDir/../node_modules/react-native/android") 27 | } 28 | maven { 29 | // Android JSC is installed from npm 30 | url("$rootDir/../node_modules/jsc-android/dist") 31 | } 32 | 33 | google() 34 | jcenter() 35 | maven { url 'https://www.jitpack.io' } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /packages/mobile/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "30.0.2" 6 | minSdkVersion = 21 7 | compileSdkVersion = 30 8 | targetSdkVersion = 30 9 | ndkVersion = "20.1.5948944" 10 | } 11 | repositories { 12 | google() 13 | mavenCentral() 14 | } 15 | dependencies { 16 | classpath("com.android.tools.build:gradle:4.2.1") 17 | // NOTE: Do not place your application dependencies here; they belong 18 | // in the individual module build.gradle files 19 | } 20 | } 21 | 22 | allprojects { 23 | repositories { 24 | mavenCentral() 25 | mavenLocal() 26 | maven { 27 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 28 | url("$rootDir/../node_modules/react-native/android") 29 | } 30 | maven { 31 | // Android JSC is installed from npm 32 | url("$rootDir/../node_modules/jsc-android/dist") 33 | } 34 | 35 | google() 36 | maven { url 'https://www.jitpack.io' } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /packages/macos/macos/reactnativeuniversalproject-macOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "scale" : "1x", 6 | "size" : "16x16" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "scale" : "2x", 11 | "size" : "16x16" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "scale" : "1x", 16 | "size" : "32x32" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "scale" : "2x", 21 | "size" : "32x32" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "scale" : "1x", 26 | "size" : "128x128" 27 | }, 28 | { 29 | "idiom" : "mac", 30 | "scale" : "2x", 31 | "size" : "128x128" 32 | }, 33 | { 34 | "idiom" : "mac", 35 | "scale" : "1x", 36 | "size" : "256x256" 37 | }, 38 | { 39 | "idiom" : "mac", 40 | "scale" : "2x", 41 | "size" : "256x256" 42 | }, 43 | { 44 | "idiom" : "mac", 45 | "scale" : "1x", 46 | "size" : "512x512" 47 | }, 48 | { 49 | "idiom" : "mac", 50 | "scale" : "2x", 51 | "size" : "512x512" 52 | } 53 | ], 54 | "info" : { 55 | "author" : "xcode", 56 | "version" : 1 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /packages/web/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@my-app/web", 3 | "version": "0.0.0", 4 | "private": true, 5 | "scripts": { 6 | "start": "craco start", 7 | "build": "craco build", 8 | "test": "react-scripts test --watchAll=false --passWithNoTests", 9 | "eject": "react-scripts eject", 10 | "lint": "eslint .", 11 | "lint:fix": "yarn lint --fix" 12 | }, 13 | "dependencies": { 14 | "@my-app/app": "*", 15 | "@react-native-async-storage/async-storage": "^1.15.7", 16 | "@testing-library/jest-dom": "^5.11.4", 17 | "@testing-library/react": "^11.1.0", 18 | "@testing-library/user-event": "^12.1.10", 19 | "react": "^17.0.2", 20 | "react-dom": "^17.0.2", 21 | "react-native": "^0.65.1", 22 | "react-native-web": "^0.17.1", 23 | "react-scripts": "4.0.3", 24 | "web-vitals": "^1.0.1" 25 | }, 26 | "devDependencies": { 27 | "@craco/craco": "^6.2.0", 28 | "@types/react": "^17.0.20", 29 | "@types/react-dom": "^17.0.9", 30 | "react-native-monorepo-tools": "^1.1.0" 31 | }, 32 | "browserslist": { 33 | "production": [ 34 | ">0.2%", 35 | "not dead", 36 | "not op_mini all" 37 | ], 38 | "development": [ 39 | "last 1 chrome version", 40 | "last 1 firefox version", 41 | "last 1 safari version" 42 | ] 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /packages/mobile/metro.config.js: -------------------------------------------------------------------------------- 1 | const exclusionList = require("metro-config/src/defaults/exclusionList"); 2 | const { getMetroTools, getMetroAndroidAssetsResolutionFix } = require("react-native-monorepo-tools"); 3 | 4 | const monorepoMetroTools = getMetroTools(); 5 | 6 | const androidAssetsResolutionFix = getMetroAndroidAssetsResolutionFix(); 7 | 8 | module.exports = { 9 | transformer: { 10 | // Apply the Android assets resolution fix to the public path... 11 | publicPath: androidAssetsResolutionFix.publicPath, 12 | getTransformOptions: async () => ({ 13 | transform: { 14 | experimentalImportSupport: false, 15 | inlineRequires: false, 16 | }, 17 | }), 18 | }, 19 | server: { 20 | // ...and to the server middleware. 21 | enhanceMiddleware: (middleware) => { 22 | return androidAssetsResolutionFix.applyMiddleware(middleware); 23 | }, 24 | }, 25 | // Add additional Yarn workspace package roots to the module map. 26 | // This allows importing importing from all the project's packages. 27 | watchFolders: monorepoMetroTools.watchFolders, 28 | resolver: { 29 | // Ensure we resolve nohoist libraries from this directory. 30 | blockList: exclusionList(monorepoMetroTools.blockList), 31 | extraNodeModules: monorepoMetroTools.extraNodeModules, 32 | }, 33 | }; 34 | -------------------------------------------------------------------------------- /packages/tv/metro.config.js: -------------------------------------------------------------------------------- 1 | const exclusionList = require('metro-config/src/defaults/exclusionList'); 2 | const { 3 | getMetroTools, 4 | getMetroAndroidAssetsResolutionFix, 5 | } = require('react-native-monorepo-tools'); 6 | 7 | const monorepoMetroTools = getMetroTools(); 8 | 9 | const androidAssetsResolutionFix = getMetroAndroidAssetsResolutionFix(); 10 | 11 | module.exports = { 12 | transformer: { 13 | // Apply the Android assets resolution fix to the public path... 14 | publicPath: androidAssetsResolutionFix.publicPath, 15 | getTransformOptions: async () => ({ 16 | transform: { 17 | experimentalImportSupport: false, 18 | inlineRequires: false, 19 | }, 20 | }), 21 | }, 22 | server: { 23 | // ...and to the server middleware. 24 | enhanceMiddleware: (middleware) => { 25 | return androidAssetsResolutionFix.applyMiddleware(middleware); 26 | }, 27 | }, 28 | // Add additional Yarn workspace package roots to the module map. 29 | // This allows importing importing from all the project's packages. 30 | watchFolders: monorepoMetroTools.watchFolders, 31 | resolver: { 32 | // Ensure we resolve nohoist libraries from this directory. 33 | blockList: exclusionList(monorepoMetroTools.blockList), 34 | extraNodeModules: monorepoMetroTools.extraNodeModules, 35 | }, 36 | }; 37 | -------------------------------------------------------------------------------- /packages/tv/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@my-app/tv", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "react-native start", 7 | "android": "emulator -avd Android_TV; react-native run-android", 8 | "ios": "react-native run-ios --simulator 'Apple TV' --scheme 'tv-tvOS'", 9 | "studio": "studio android", 10 | "xcode": "xed ios", 11 | "pods": "pod-install", 12 | "test": "jest", 13 | "lint": "eslint . --ext .js,.jsx,.ts,.tsx" 14 | }, 15 | "dependencies": { 16 | "@my-app/app": "*", 17 | "@react-native-async-storage/async-storage": "^1.15.7", 18 | "react": "17.0.1", 19 | "react-native": "npm:react-native-tvos@0.64.2-2" 20 | }, 21 | "devDependencies": { 22 | "@types/jest": "^26.0.24", 23 | "@types/react-native": "^0.64.2", 24 | "@types/react-test-renderer": "^17.0.1", 25 | "babel-jest": "^26.6.3", 26 | "jest": "^26.6.3", 27 | "metro-react-native-babel-preset": "^0.64.0", 28 | "pod-install": "^0.1.27", 29 | "react-native-monorepo-tools": "^1.1.0", 30 | "react-test-renderer": "17.0.1", 31 | "typescript": "^4.4.3" 32 | }, 33 | "jest": { 34 | "preset": "react-native", 35 | "moduleFileExtensions": [ 36 | "ts", 37 | "tsx", 38 | "js", 39 | "jsx", 40 | "json", 41 | "node" 42 | ] 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /packages/next/next.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const path = require("path"); 3 | 4 | // Necessary to handle statically imported images 5 | const withImages = require('next-images'); 6 | // Necessary to handle statically imported fonts 7 | const withFonts = require('next-fonts'); 8 | 9 | module.exports = withImages(withFonts({ 10 | // Allows us to access other directories in the monorepo 11 | experimental: { 12 | externalDir: true 13 | }, 14 | // This feature conflicts with next-images 15 | images: { 16 | disableStaticImages: true, 17 | }, 18 | webpack: (config, options) => { 19 | config.resolve.alias = { 20 | ...(config.resolve.alias || {}), 21 | // Transform all direct `react-native` imports to `react-native-web` 22 | 'react-native$': 'react-native-web', 23 | } 24 | config.resolve.extensions = [ 25 | '.web.js', 26 | '.web.ts', 27 | '.web.tsx', 28 | ...config.resolve.extensions, 29 | ] 30 | 31 | if (options.isServer) { 32 | config.externals = ['react', 'react-native-web', ...config.externals]; 33 | } 34 | config.resolve.alias['react'] = path.resolve(__dirname, '.', 'node_modules', 'react'); 35 | config.resolve.alias['react-native-web'] = path.resolve(__dirname, '.', 'node_modules', 'react-native-web'); 36 | 37 | return config; 38 | } 39 | })); -------------------------------------------------------------------------------- /packages/browser-ext/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@my-app/browser-ext", 3 | "version": "0.0.0", 4 | "private": true, 5 | "scripts": { 6 | "start": "INLINE_RUNTIME_CHUNK=false craco start", 7 | "build": "INLINE_RUNTIME_CHUNK=false craco build", 8 | "test": "react-scripts test --watchAll=false --passWithNoTests", 9 | "eject": "react-scripts eject", 10 | "lint": "eslint .", 11 | "lint:fix": "yarn lint --fix" 12 | }, 13 | "dependencies": { 14 | "@my-app/app": "*", 15 | "@react-native-async-storage/async-storage": "^1.15.7", 16 | "@testing-library/jest-dom": "^5.11.4", 17 | "@testing-library/react": "^11.1.0", 18 | "@testing-library/user-event": "^12.1.10", 19 | "react": "^17.0.2", 20 | "react-dom": "^17.0.2", 21 | "react-native": "^0.65.1", 22 | "react-native-web": "^0.17.1", 23 | "react-scripts": "4.0.3", 24 | "web-vitals": "^1.0.1" 25 | }, 26 | "devDependencies": { 27 | "@craco/craco": "^6.2.0", 28 | "@types/react": "^17.0.20", 29 | "@types/react-dom": "^17.0.9" 30 | }, 31 | "browserslist": { 32 | "production": [ 33 | "last 1 chrome version", 34 | "last 1 firefox version", 35 | "last 1 safari version" 36 | ], 37 | "development": [ 38 | "last 1 chrome version", 39 | "last 1 firefox version", 40 | "last 1 safari version" 41 | ] 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /packages/windows/windows/.gitignore: -------------------------------------------------------------------------------- 1 | *AppPackages* 2 | *BundleArtifacts* 3 | 4 | #OS junk files 5 | [Tt]humbs.db 6 | *.DS_Store 7 | 8 | #Visual Studio files 9 | *.[Oo]bj 10 | *.user 11 | *.aps 12 | *.pch 13 | *.vspscc 14 | *.vssscc 15 | *_i.c 16 | *_p.c 17 | *.ncb 18 | *.suo 19 | *.tlb 20 | *.tlh 21 | *.bak 22 | *.[Cc]ache 23 | *.ilk 24 | *.log 25 | *.lib 26 | *.sbr 27 | *.sdf 28 | *.opensdf 29 | *.opendb 30 | *.unsuccessfulbuild 31 | ipch/ 32 | [Oo]bj/ 33 | [Bb]in 34 | [Dd]ebug*/ 35 | [Rr]elease*/ 36 | Ankh.NoLoad 37 | 38 | # Visual C++ cache files 39 | ipch/ 40 | *.aps 41 | *.ncb 42 | *.opendb 43 | *.opensdf 44 | *.sdf 45 | *.cachefile 46 | *.VC.db 47 | *.VC.VC.opendb 48 | 49 | #MonoDevelop 50 | *.pidb 51 | *.userprefs 52 | 53 | #Tooling 54 | _ReSharper*/ 55 | *.resharper 56 | [Tt]est[Rr]esult* 57 | *.sass-cache 58 | 59 | #Project files 60 | [Bb]uild/ 61 | 62 | #Subversion files 63 | .svn 64 | 65 | # Office Temp Files 66 | ~$* 67 | 68 | # vim Temp Files 69 | *~ 70 | 71 | #NuGet 72 | packages/ 73 | *.nupkg 74 | 75 | #ncrunch 76 | *ncrunch* 77 | *crunch*.local.xml 78 | 79 | # visual studio database projects 80 | *.dbmdl 81 | 82 | #Test files 83 | *.testsettings 84 | 85 | #Other files 86 | *.DotSettings 87 | .vs/ 88 | *project.lock.json 89 | 90 | #Files generated by the VS build 91 | **/Generated Files/** 92 | 93 | -------------------------------------------------------------------------------- /packages/tv/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | # Automatically convert third-party libraries to use AndroidX 25 | android.enableJetifier=true 26 | 27 | # Version of flipper SDK to use with React Native 28 | FLIPPER_VERSION=0.54.0 29 | -------------------------------------------------------------------------------- /packages/mobile/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | # Automatically convert third-party libraries to use AndroidX 25 | android.enableJetifier=true 26 | 27 | # Version of flipper SDK to use with React Native 28 | FLIPPER_VERSION=0.93.0 29 | -------------------------------------------------------------------------------- /packages/next/pages/_document.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | import { Children } from 'react' 3 | import Document, { 4 | Html, 5 | Head, 6 | Main, 7 | NextScript, 8 | DocumentContext 9 | } from 'next/document'; 10 | import { AppRegistry } from 'react-native'; 11 | 12 | import appName from '../app.json'; 13 | 14 | // Force Next-generated DOM elements to fill their parent's height 15 | const normalizeNextElements = ` 16 | #__next { 17 | display: flex; 18 | flex-direction: column; 19 | height: 100%; 20 | } 21 | html { 22 | height: 100%; 23 | } 24 | body { 25 | height: 100%; 26 | overflow: hidden; 27 | } 28 | `; 29 | 30 | export default class MyDocument extends Document { 31 | static async getInitialProps({ renderPage }: DocumentContext) { 32 | AppRegistry.registerComponent(appName.name, () => Main); 33 | const { getStyleElement } = AppRegistry.getApplication(appName.name); 34 | const page = await renderPage(); 35 | const styles = [ 36 |