Closed atlj closed 4 months ago
This is an effort to implement a recommended template. See the Golden Template RFC for context.
This adds a new parameter called --with-recommended-options and the corresponding question to the CLI. Here's how the CLI prompt looks like:
--with-recommended-options
This also adds the text (Recommended) at the end of the recommended options (View + Module with backward compats and Kotlin + Obj-c at the moment).
(Recommended)
create-react-native-library
Do you want to customize the library type and languages?
Use recommended defaults
Customize
Fabric view and Turbo module with backward compat
--type module-view-new
Summary
This is an effort to implement a recommended template. See the Golden Template RFC for context.
This adds a new parameter called
--with-recommended-options
and the corresponding question to the CLI. Here's how the CLI prompt looks like:This also adds the text
(Recommended)
at the end of the recommended options (View + Module with backward compats and Kotlin + Obj-c at the moment).Test plan
A. Happy Path
create-react-native-library
and answer the mail address, git repo, etc. questions.Do you want to customize the library type and languages?
.Use recommended defaults
.B. Pick Customize
create-react-native-library
and answer the mail address, git repo, etc. questions.Do you want to customize the library type and languages?
.Customize
.Fabric view and Turbo module with backward compat
option has the(Recommended)
text.C. Pass
--with-recommended-options
create-react-native-library
with--with-recommended-options
parameter.D. Pass
--with-recommended-options
with bad parameterscreate-react-native-library
with--with-recommended-options
and--type module-view-new
.