Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/listenzz/react-native-create-lib
Tool to create a React Native library module or view module with a single command
https://github.com/listenzz/react-native-create-lib
create library react-native
Last synced: 4 days ago
JSON representation
Tool to create a React Native library module or view module with a single command
- Host: GitHub
- URL: https://github.com/listenzz/react-native-create-lib
- Owner: listenzz
- License: mit
- Created: 2019-11-21T10:47:57.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-26T06:20:17.000Z (over 1 year ago)
- Last Synced: 2024-10-30T05:26:27.520Z (15 days ago)
- Topics: create, library, react-native
- Language: JavaScript
- Size: 396 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-create-lib
一行命令创建组件库
本库 fork 自 [create-react-native-module](https://github.com/brodybits/create-react-native-module)
## Command-line usage
Navigate into an empty directory to execute the command.
```
$npx react-native-create-lib MyLib
``````
$ react-native-create-lib --module-name @sdcx/wechat --repo-name react-native-wechat wechat
```This will create the folder `MyLib` in which the library will be created in.
Now install dependencies by running this command in the newly created library.
```
$ npm install
``````
使用: react-native-create-lib [options]选项:
-V, --version output the version number
--prefix The prefix for the library module (Default: `RN`)
--module-name The module library package name to be used in package.json. (Default: `react-native-(name in param-case)`)
--package-identifier [Android] The Java package identifier used by the Android module (Default: `com.reactnative.(name in lower-case`)
--repo-name [repoName] The repository name (Default: `react-native-(name in param-case)`)
--platforms Platforms the library module will be created for - comma separated (Default: `ios,android`)
--github-account The github account where the library module is hosted (Default: `github-account`)
--author-name The author's name (Default: `author-name`)
--author-email The author's email (Default: `[email protected]`)
--license The license type (Default: `MIT`)
-h, --help output usage information
```## License
[MIT](./LICENSE)