react-native-universal-monorepo
ordinary-puzzles-app
Our great sponsors
react-native-universal-monorepo | ordinary-puzzles-app | |
---|---|---|
12 | 5 | |
1,663 | 469 | |
- | - | |
0.0 | 0.0 | |
almost 2 years ago | about 1 year ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-native-universal-monorepo
- React Native universal monorepo template for mobile, desktop, web and more
- Building Windows apps?
- Minimizing code duplication between React Native and React app
- Monorepo setup with react-native and react-native-web
-
Ask HN: What Stack for mobile/desktop cross-platform native development in 2021?
React Native is your best bet.
Examples:
- https://github.com/devhubapp/devhub
- https://github.com/mmazzarolo/react-native-universal-monorep...
RN desktop support is weak. But your mobile apps will work quite differently to your desktop apps anyway. And you probably want something that can run on the web too. So for desktop you just put your web app in Electron.
The difference between mobile and web will mean having to implement different routing and components, but you can share a lot of code.
Flutter is the new kid on the block.
-
Running React Native everywhere
You can see the final result in the react-native-universal-monorepo GitHub repository.
For the sake of simplicity, code is written in plain JavaScript. Still, you can add support for TypeScript if needed (you can use the React Native Universal Monorepo as an example; it's written in TypeScript).
-
Running React Native Everywhere
Author here!
"Running React Native everywhere" is an opinionated tutorial on how to run React Native on multiple platforms using Yarn workspaces.
You can see the final result in this GitHub repo: https://github.com/mmazzarolo/react-native-universal-monorep...
Which currently supports:
-
Running React Native everywhere: Browser Extensions & Electron
For feedback and questions, feel free to start a discussion on the React Native Universal Monorepo's discussions page or send me a direct message.
-
“Running React Native everywhere”: an opinionated in-depth guide on how to run React Native on multiple platforms (overview + monorepo setup)
The goal is to create from scratch the [React Native Universal Monorepo](https://github.com/mmazzarolo/react-native-universal-monorepo), supporting Android, iOS, macOS, Windows, the web, a browser extension, and Electron.
ordinary-puzzles-app
- Is there any good example of real-world open-source application (neither libraries nor frameworks nor samples) written in Typescript?
-
Running React Native everywhere: Yarn Workspaces monorepo
Last, because you're supporting multiple platforms in a single directory, it's easy to end up with confusing indirections and branches in platform-specific files. This may be just a "me" thing, but I find it hard to navigate around configuration files of projects that support multiple platforms. At first glance, it may look like all platforms use the same configuration files. But once you dig a bit deeper, you realize that each platform requires some ad-hoc tweaks to the configuration files (for Metro, Babel, Webpack, etc.). Want an example from a codebase I wrote? Check out Ordinary Puzzles, which is a mobile, web, and Electron app. It's not easy to understand what files are used by which platform (e.g., what platform build phase is using babel.config.js?)
-
React Native monorepo supporting multiple platforms: Android, iOS, macOS, Windows, web, browser extension, electron
Can't say for sure. It's highly likely you'll need to make some changes to the metro bundle config when you update React-Native. But at least these changes should be less painful to deal with than having to mess with the native code (which you would do if you don't use nohoist). Personally, I prefer this approach to the known alternatives — which are not using a monorepo at all (which can get confusing as soon as you start supporting multiple platforms) or using a monorepo without nohoist. But it might be just a matter of preference 👍
-
Building a desktop application using Electron and Create React App
I recently needed to wrap a React app generated with Create React App (CRA) with Electron (well, the app itself uses React Native for Web, but it doesn’t matter). My goal was to stay within the Create React App limits as much as possible (without ejecting). There’s no shortage of guides on how to do it online. Still, I couldn’t find one that fully follows the Electron security guidelines and provides a distribution setup using Electron-builder. So, here’s yet another tutorial on how to wrap an app built with Create React App in Electron — from the initial scaffolding up to the distribution workflow.
-
Opensource RN apps (that are in production) - for inspiration
Ordinary Puzzles - Mobile and web puzzle game built with React-Native
What are some alternatives?
craco - Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
react-native-picture-puzzle - ⚛️ 🧩 A picture puzzle component.
openmtp - OpenMTP - Advanced Android File Transfer Application for macOS
concurrently - Run commands concurrently. Like `npm run watch-js & npm run watch-less` but better.
chrome-extensions-samples - Chrome Extensions Samples
super-auto-pets-db - This database website is an un-official guide and reference for the pets, food and stats from the game Super Auto Pets.
re-start - react-native template to target multiple platforms :globe_with_meridians: :iphone: :computer: with single codebase.
mobx-angular - The MobX connector for Angular.
create-react-app - Set up a modern web app by running one command.
nx - Smart Monorepos · Fast CI
react-bones - 💀 Dead simple content loading components for React and React-Native 💀
electronmon - 🖥 run, watch, and restart electron apps using magic