Skip to content

Implement react-native-macos-init in react-native.config.js #1797

@szymonrybczak

Description

@szymonrybczak

Summary

Right now react-native-macos-init is implemented as separate package. But inside React Native CLI we've plugins, which allows to add new commands. Actually inside react-native-macos I can see that there's implemented run-macos command via react-native.config.js.

const macosCommands = [require('./local-cli/runMacOS/runMacOS')];
module.exports = {
commands: [...iosCommands, ...androidCommands, ...macosCommands],

So it'll really good to unify this, and use react-native.config.js for the init command.

Motivation

That's official API provided by RN CLI, and it'll also in some way future-proof to unify this.

Basic Example

There's documentation which provides all necessarily informations, how to do it correctly.

Open Questions

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions