You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--prefix <prefix> The prefix for the library (Default: ``)
63
+
-V, --version output the version number
64
+
--prefix <prefix> The prefix for the library module (Default: ``)
65
65
--module-name <moduleName> The module library package name to be used in package.json. Default: react-native-(name in param-case)
66
-
--module-prefix <modulePrefix> The module prefix for the library, ignored if --module-name is specified (Default: `react-native`)
66
+
--module-prefix <modulePrefix> The module prefix for the library module, ignored if --module-name is specified (Default: `react-native`)
67
67
--package-identifier <packageIdentifier> (Android only!) The package name for the Android module (Default: `com.reactlibrary`)
68
-
--platforms <platforms> Platforms the library will be created for. (comma separated; default: `ios,android`)
69
-
--github-account <github_account> The github account where the library is hosted (Default: `github_account`)
70
-
--author-name <name> The author's name (Default: `Your Name`)
71
-
--author-email <email> The author's email (Default: `yourname@email.com`)
72
-
--license <license> The license type of this library (Default: `Apache-2.0`)
73
-
--view Generate the module as a very simple native view component (Default: `false`)
74
-
--generate-example <shouldGenerate> Generate an example project and links the library module to it, requires both react-native-cli and yarn to be installed globally (Default: `false`)
68
+
--platforms <platforms> Platforms the library module will be created for - comma separated (Default: `ios,android`)
69
+
--github-account <githubAccount> The github account where the library module is hosted (Default: `github_account`)
70
+
--author-name <authorName> The author's name (Default: `Your Name`)
71
+
--author-email <authorEmail> The author's email (Default: `yourname@email.com`)
72
+
--license <license> The license type (Default: `Apache-2.0`)
73
+
--view Generate the module as a very simple native view component
74
+
--generate-example Generate an example project and links the library module to it, requires both react-native-cli and yarn to be installed globally
console.log('Oh yay! My library has been created!');
86
+
console.log('Oh yay! My library module has been created!');
86
87
})
87
88
```
88
89
@@ -91,7 +92,7 @@ createLibrary({
91
92
```javascript
92
93
{
93
94
name:String, /* The name of the library (Default: Library) */
94
-
prefix:String, /* The prefix for the library (Default: RN) */
95
+
prefix:String, /* The prefix for the library (Default: ``) */
95
96
moduleName:String, /* The module library package name to be used in package.json. Default: react-native-(name in param-case) */
96
97
modulePrefix:String, /* The module prefix for the library, ignored if moduleName is specified (Default: react-native) */
97
98
platforms:Array, /* Platforms the library will be created for. (Default: ['ios', 'android']) */
@@ -100,15 +101,11 @@ createLibrary({
100
101
authorName:String, /* The author's name (Default: `Your Name`) */
101
102
authorEmail:String, /* The author's email (Default: `yourname@email.com`) */
102
103
license:String, /* The license type of this library (Default: `Apache-2.0`) */
103
-
view:Boolean, /* Generate the module as a very simple native view component (Default: `false`) */
104
-
generateExample:Boolean, /* Generate an example project and links the library module to it, requires both react-native-cli and yarn to be installed globally (Default: `false`) */
104
+
view:Boolean, /* Generate the module as a very simple native view component (Default: false) */
105
+
generateExample:Boolean, /* Generate an example project and links the library module to it, requires both react-native-cli and yarn to be installed globally (Default: false) */
105
106
}
106
107
```
107
108
108
-
## SOME KNOWN ISSUES
109
-
110
-
- CLI does not show the correct path of the generated library module
111
-
112
109
## Behavior not tested or supported
113
110
114
111
- Windows platform support
@@ -123,7 +120,7 @@ __Create the module with no view:__
The module would be generated in the `react-native-alice-helper` subdirectory, and the example test app would be in `react-native-alice-helper/example`. (Note that this tool will show an incorrect project name when it is finished.)
123
+
The module would be generated in the `react-native-alice-helper` subdirectory, and the example test app would be in `react-native-alice-helper/example`.
127
124
128
125
Then go into the example app subdirectory:
129
126
@@ -182,7 +179,7 @@ __Create the module with an extremely simple view:__
The module would be generated in the `react-native-alice-helper` subdirectory, and the example test app would be in `react-native-alice-helper/example`. (Note that this tool will show an incorrect project name when it is finished.)
182
+
The module would be generated in the `react-native-carol-widget` subdirectory, and the example test app would be in `react-native-carol-widget/example`.
description: '(Android only!) The package name for the Android module (Default: `com.reactlibrary`)',
76
+
description: '(Android only!) The package name for the Android module',
64
77
default: 'com.reactlibrary',
65
78
},{
66
79
command: '--platforms <platforms>',
67
-
description: 'Platforms the library module will be created for. (comma separated; default: `ios,android`)',
80
+
description: 'Platforms the library module will be created for - comma separated',
68
81
default: 'ios,android',
69
82
},{
70
83
command: '--github-account [githubAccount]',
71
-
description: 'The github account where the library module is hosted (Default: `github_account`)',
84
+
description: 'The github account where the library module is hosted',
72
85
default: 'github_account',
73
86
},{
74
87
command: '--author-name [authorName]',
75
-
description: 'The author\'s name (Default: `Your Name`)',
88
+
description: 'The author\'s name',
76
89
default: 'Your Name',
77
90
},{
78
91
command: '--author-email [authorEmail]',
79
-
description: 'The author\'s email (Default: `yourname@email.com`)',
92
+
description: 'The author\'s email',
80
93
default: 'yourname@email.com',
81
94
},{
82
95
command: '--license [license]',
83
-
description: 'The license type (Default: `Apache-2.0`)',
96
+
description: 'The license type',
84
97
default: 'Apache-2.0',
85
98
},{
86
99
command: '--view',
87
-
description: 'Generate the module as a very simple native view component (Default: `false`)',
100
+
description: 'Generate the module as a very simple native view component',
88
101
},{
89
102
command: '--generate-example',
90
-
description: 'Generate an example project and links the library module to it, requires both react-native-cli and yarn to be installed globally (Default: `false`)',
103
+
description: 'Generate an example project and links the library module to it, requires both react-native-cli and yarn to be installed globally',
0 commit comments