riddick-react-native
v1.0.4
Published
test
Downloads
37
Readme
riddick-react-native
component
Installation
npm install riddick-react-native
Usage
import { RiddickReactNativeView } from "riddick-react-native";
// ...
<RiddickReactNativeView color="tomato" />
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
如何发布用户需要使用的相关文件呢?
方法一:使用 .gitignore 设置忽略哪些文件
.gitignore 设置的忽略文件,在git代码管理和 npm publish 都会被忽略
方法二:使用 .npmignore设置忽略哪些文件
.npmignore的写法跟**.gitignore** 的规则完全一样。若同时使用了**.npmignore和.gitignore**,只有**.npmignore**会生效,优先级比较高
方法三:使用 package.json 的 files 字段选择发布哪些文件
在 package.json 中 files 字段设置发布哪些文件或目录。这个优先级高于 .npmignore和 .gitignore
添加编译后src文件源代码
在 package.json 中 files 字段前添加 "react-native": "src/index",