UNPKG

@nx/react-native

Version:

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 th

13 lines (12 loc) 579 B
import { GeneratorCallback, Tree } from '@nx/devkit'; import { WebConfigurationGeneratorSchema } from './schema'; /** * This function sets web configuration for react native apps with react-native-web. * 1. install react-native-web * 2. apply webpack or vite init generator * 3. create files for webpack or vite config, index.html, assets folder, babel.config.js * @param tree * @param options */ export declare function webConfigurationGenerator(tree: Tree, options: WebConfigurationGeneratorSchema): Promise<GeneratorCallback>; export default webConfigurationGenerator;