
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@xorob0/rn-template
Advanced tools
npx create-nx-workspace --cli=nx --preset=empty
# Using npm
npm install --save-dev @nrwl/react-native
# Using yarn
yarn add -D @nrwl/react-native
npx nx g @nrwl/react-native:app <app-name>
When using Nx, you can create multiple applications and themes in the same workspace. If you don't want to prefix your commands with npx, install @nrwl/cli globally.
npx nx start <app-name>
This will start the bundler at http://localhost:8081.
Make sure the bundler server is running.
Android:
npx nx run-android <app-name>
iOS: (Mac only)
npx nx run-ios <app-name> --install
Note: The --install flag installs Xcode dependencies before building the iOS app. This option keeps dependencies up to date.
Android:
npx nx build-android <app-name>
iOS: (Mac only)
No CLI support yet. Run in the Xcode project. See: https://reactnative.dev/docs/running-on-device
npx nx test <app-name>
npx nx lint <app-name>
You can use a component from React library generated using Nx package for React. Once you run:
npx nx g @nrwl/react-native:lib ui-button
This will generate the UiButton component, which you can use in your app.
import { UiButton } from '@myorg/ui-button';
Usage:
npx nx [command] [app] [...options]
startStarts the JS bundler that communicates with connected devices.
--port [number]The port to listen on.
run-iosBuilds your app and starts it on iOS simulator.
--port [number]The port of the JS bundler.
--installInstall dependencies for the Xcode project before building iOS app.
--syncSync app dependencies to its package.json. On by default, use --no-sync to turn it off.
run-androidBuilds your app and starts it on iOS simulator.
--port [number]The port of the JS bundler.
--syncSync app dependencies to its package.json. On by default, use --no-sync to turn it off.
sync-depsSync app dependencies to its package.json.
--include [string]A comma-separate list of additional packages to include.
e.g. nx sync-deps [app] --include react-native-gesture,react-native-safe-area-context
Visit the Nx Documentation to learn more.
FAQs
An opinionated React Native Plugin for Nx
We found that @xorob0/rn-template demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.