react-native-monorepo-tools
customize-cra
Our great sponsors
react-native-monorepo-tools | customize-cra | |
---|---|---|
4 | 6 | |
123 | 2,757 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | 7 months ago | |
JavaScript | JavaScript | |
GNU General Public License v3.0 only | 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-monorepo-tools
-
Monorepo is so frustrating...
Second app with bare RN. Similar story. It doesn't work. I googled and found this https://github.com/mmazzarolo/react-native-monorepo-tools . But still doesn't work... I found some random example https://github.com/aws-samples/aws-sdk-js-tests/blob/main/packages/react-native/metro.config.js and wow it works. I skip the confusion with tsconfig.json, setting path etc.
-
Running React Native everywhere: The Web
Install CRACO and react-native-monorepo-tools:
-
Running React Native everywhere: Windows & macOS
Last but not least, use react-native-monorepo-tools to make metro compatible with Yarn Workspaces:
-
Running React Native everywhere: Android & iOS
To do so, install react-native-monorepo-tools, a set of utilities for making metro compatible with Yarn workspaces based on our nohoist list.
customize-cra
-
Simplest Way to Install Babel Plugins in Create React App
Install react-app-rewired and customize-cra:
-
Running React Native everywhere: The Web
If Create React App supported Yarn workspaces out-of-the-box, what we've done so far would have been enough to run the app... unfortunately, it doesn't. Luckily, we can use CRACO (or other tools such as customize-cra or react-app-rewired) to customize the Webpack configuration used by Create React App to resolve packages imported from other workspaces.
-
Enhancing Chrome Extension developer experience with CRA (create-react-app)
Now, for customize-cra to work we need to modify the config-overrides.js file once again. The override method from customize-cra receives a list of functions, so we need to change the signature like this:
- For those with work experience, what is the industry standard way of building a react project?
-
Run your React Native app on the web with React Native for Web
Eventually, you might need to customize your project beyond what Create React App allows you to do. Most of these customizations will probably be just slight changes to the Webpack and Babel configuration of Create React App where ejecting would be overkill — which is why you might wanna use something like react-app-rewired, customize-cra, or craco to apply these changes without ejecting.
What are some alternatives?
metro - 🚇 The JavaScript bundler for React Native
craco - Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
react-app-rewired - Override create-react-app webpack configs without ejecting
react-native-web - Cross-platform React UI packages
webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
expo-cli - Tools for creating, running, and deploying universal Expo and React Native apps
create-react-app - Set up a modern web app by running one command.
react-native-keep-awake - Keep the screen from going to sleep. iOS and Android.