forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Labels
Description
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.
react-native-macos/react-native.config.js
Lines 20 to 23 in 3ea16bd
| 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
thymikee, Saadnajmi and troZee