@nrwl/react-native
React Native brings React's declarative UI framework to iOS and Android. With React Native, you use native UI controls and have full access to the native platform.
The Nx Plugin for React Native contains generators for managing React Native applications and libraries within an Nx workspace. It provides:
-
Integration with libraries such as Jest, Detox, and Storybook.
-
Scaffolding for creating buildable libraries that can be published to npm.
-
Utilities for automatic workspace refactoring.
Here is a list of all the executors and generators available from this package.
Executors
Runs Android application.
Runs iOS application.
Builds the JavaScript bundle for offline use.
Release Build for Android.
Starts the Javascript server that communicates with connected devices.
Syncs dependencies to
package.json
(required for autolinking).Ensure workspace
node_modules
is symlink under app'snode_modules
folder.Serve React Native Storybook.
Generators
Initialize the
@nrwl/react-native
plugin.Create a React Native application.
Create a React Native library.
Create a React Native component.
Set up Storybook for a React-native application or library.
Generate Storybook story for a React-native component.
Create stories/specs for all components declared in an application or library.