metro
discussions-and-proposals
metro | discussions-and-proposals | |
---|---|---|
16 | 37 | |
5,060 | 1,612 | |
0.4% | 0.4% | |
9.3 | 5.0 | |
3 days ago | 17 days ago | |
JavaScript | ||
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.
metro
-
Dynamic imports supported in react native
For details on the implementation you can see Evan's PR to metro here.
- React Native bundler improvement! 🔥
-
React vs React Native: How Different Are They, Really?
Some development tools for the web are similar (Chrome debugger, mostly) to those for React Native, but other aspects are very different (working with the metro bundler, using Flipper, AsyncStorage debugging, more). Some techniques developers will use are the same (breakpoints and console logging), but others are different (knowing when to restart the packager vs reinstall the app on device).
-
Setting up React Native Monorepo with Yarn Workspaces
We’re almost done with setting up the project. The last thing in the React Native app is to add watchFolders so metro knows where the linked node_modules are. The shared modules are symlinked by yarn, and since metro doesn’t follow symlinks we need to explicitly say it where the linked node_modules are.
-
Debugging RN + Expo bare using WebStorm? Would I be better off just killing myself now?
Unfortunately it is what it is... I use intellij instead of webstorm since they're the same thing basically. I spent a shitton of time figuring out how to link a local package i was creating for my app only to discover about this issue that is almost as old as react native itself. (luckily there's rnx-kit that solves the problem). Not to talk about the impossibility to have one goddamn IDE to write both typescript, java and c++. Currently i have to write ts/js in intellij, then i have to switch to android studio to write java/c++.
-
Do you know where the __DEV__ flag is set?
React Native packager. Override instructions here.
-
React Native Monorepo
React Native doesn't play nicely with most monorepo tools out of the box as Metro doesn't support symlinking.
-
Running React Native everywhere: The Web
Because React Native for Web is a React website, you can use front-end tools to build and run it. For example, you can build it with Webpack or Rollup instead of Metro bundler.
-
Running React Native everywhere: Android & iOS
Before we can run the app, we still need do one more thing: make metro bundler compatible with Yarn workspaces' hoisting.
-
Running React Native everywhere: Yarn Workspaces monorepo
Second, sharing code with other projects (e.g., backend code, web apps) may get complicated. Out-of-the-box, React Native's metro bundler cannot reference code outside of the project's root directory. You can configure it to do so (and we'll do it as well later on). Still, once you do it, you'll also need to ensure dependencies resolution works correctly (to avoid loading two different versions of the same library, for example); which might not be as easy as it may sound.
discussions-and-proposals
-
Rn-fetch-blob build error
Removing package name from AndroidManifest.xml is required for RN 0.73. Libraries is started to remove it and switched to namespace since RN 0.71. You have 2 options:
-
React Native
React Native: A JavaScript Framework for Building Native Mobile Apps
- Is community doing something to improve developer experience?
-
Front-end Guide
Before you dive into the various aspects of building a JavaScript web app, it is important to get familiar with the language of the web - JavaScript, or ECMAScript. JavaScript is an incredibly versatile language which you can also use to build web servers, native mobile apps and desktop apps.
- In case someone missed it: How can we improve React Native? · react-native-community/discussions-and-proposals
- 2022: How can we improve React Native?
-
What bothers you about react native?
there are a whole bunch of complaints here
- 2022: How can we improve React Native? - We (the React team) are looking into your opinion and suggestions on how we can improve the developer experience of React Native - Thread closes in ~2 weeks.
-
Setting up React Native Monorepo with Yarn Workspaces
Using a monorepo is growing in popularity - there is even an open proposal to migrate react-native repository to monorepo. Find out more about React Native monorepo on github.
-
Create high-performance graphics with React Native Skia
React Native JSI is a core change in the re-architecture of React Native. This is a layer that offers “synchronous” communication between JavaScript and native code. It will be replacing the default react native bridge. (Source)
What are some alternatives?
expo-cli - Tools for creating, running, and deploying universal Expo and React Native apps
react-native-skia-demo - A React Native Project demonstrating use of react-native-skia library
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.
WebdriverIO - Next-gen browser and mobile automation test framework for Node.js
react-native-web - Cross-platform React UI packages
expo - An open-source framework for making universal native apps with React. Expo runs on Android, iOS, and the web.
react-native-monorepo-tools - Tools and utils to support a React Native monorepo built with Yarn Workspaces
async-storage - An asynchronous, persistent, key-value storage system for React Native.
craco - Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
Cypress - Fast, easy and reliable testing for anything that runs in a browser.
nx - Smart Monorepos · Fast CI
caldera-react - Server-side execution for React 🌋