Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)