React Native 创建第三方库

 使用react-native-create-library 这个库

第一步全局安装该库:

 npm install -g react-native-create-library

或者:

 npx create-react-native-library@latest app-finance-companion

建议使用 全局安装

创建库

npx react-native-create-library@latest playne-cz-images

react-native-create-library XXXX

github:

github:https://github.com/frostney/react-native-create-library


XXXX 必须小写开头



第二种方案使用

react-native-community/bob

npx @react-native-community/bob create react-native-xxxx-module

详情:

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容