笔者个人网站:https://wayne214.github.io/
公众号:君伟说
觉得文章不错的,给我点个赞哇,关注一下呗!
技术交流可关注微信公众号【君伟说】,加我好友一起探讨
微信交流群:加好友(备注技术交流)邀你入群,抱团学习共进步
2020.5.28更新
列表item加载中动画效果
React Native Content Loader
十一假期学习撸了一个小程序,欢迎各位朋友进行关注,代码已经在gitHub上开源:
清风天气
清风天气
2020.3.24更新:
一个React Native模块,允许您使用默认应用程序在设备上打开文件(mp3,mp4,pdf,word,excel,dwg等)
2019.11.11更新:
react-native-extra-dimensions-android
获取Android手机屏幕正式高度,宽度,解决ReactNative中这个问题const {height, width} = Dimensions.get('window'); 获取的高度不包含statusbar 和 bottomNavigationBar高度,错误
2019.9.27更新:
美团技术团队开源的ReactNative组件库--beeshell 升级2.0版本了
beeshell
2019.8.23更新
Access additional display metrics on Android devices: status bar height, soft menu bar height, real screen size
react-native-extra-dimensions-android
2019.4.17更新:
动画库:
react-native-pose
2019.4.12更新:
时间轴,快递流程图效果
https://github.com/24ark/react-native-step-indicator
https://github.com/thegamenicorus/react-native-timeline-listview
2019.4.8更新:
react-native 表格组件
react-native-table-component
使用:https://blog.csdn.net/weixin_44187730/article/details/86487845
react-native-data-table
使用:https://www.jianshu.com/p/6ab2a96a9f1a
2019.2.27更新
A polyfill library for Alert.prompt on Android platform, working both on Android and iOS platform
react-native-prompt-android
React Native 第三方组件之--UI类 https://www.jianshu.com/p/c7a8f115dca0
聊天UI
下面这种情况建议选择aurora-imui-react-native:
对性能要求较高(低能耗)
需要处理大量聊天消息(群聊)
对媒体消息要求较高(图片、表情、视频)
下面这种情况建议选择react-native-gifted-chat:
对自定义要求比较高,aurora-imui-react-native 提供的配置项无法满足界面需求的时候。
不需要处理大量消息。
业务只需要处理文本消息。
引自:如何构建你的聊天界面 https://www.jianshu.com/p/79163c6f73f7
2019.2.20更新
ReactNative安装apk(Android only)
react-native-apk-install
2019.1.30更新:
react native 调用手机内置地图:
GitHub:https://github.com/starlight36/react-native-map-linking
React Native多功能选择页面
https://github.com/gaoxiaosong/react-native-picklist
2019.1.21更新
react-native-speech-iflytek 是一个 React Native 下的科大讯飞语音库,可以进行语音识别与语音合成。
聊天UI
下面这种情况建议选择aurora-imui-react-native:
对性能要求较高(低能耗)
需要处理大量聊天消息(群聊)
对媒体消息要求较高(图片、表情、视频)
下面这种情况建议选择react-native-gifted-chat:
对自定义要求比较高,aurora-imui-react-native 提供的配置项无法满足界面需求的时候。
不需要处理大量消息。
业务只需要处理文本消息。
引自:如何构建你的聊天界面 https://www.jianshu.com/p/79163c6f73f7
2019.2.20更新
ReactNative安装apk(Android only)
react-native-apk-install
2019.1.30更新:
React Native多功能选择页面
https://github.com/gaoxiaosong/react-native-picklist
2019.1.21更新
react-native-speech-iflytek 是一个 React Native 下的科大讯飞语音库,可以进行语音识别与语音合成。
2018.12.29更新:
应简书网友:RNAmateur的请求,更新如下两个
React Native中自定义导航条
https://www.jianshu.com/p/d805e022c236
React Native中事件监听和持久化存储的结构化设计
https://www.jianshu.com/p/43c2f39992b4
2018.12.4更新:
webview即将从rnCore中移除,使用react-native-webview进行代替
https://github.com/react-native-community/react-native-webview
2018.11.26更新:
跨平台的webview处理:
https://github.com/wayne214/react-native-webview-crossplatform
2018.11.8更新:
ReactNativeCookies处理
react-native-cookies
react-native常用插件总结
2018.11.7更新:
适配IPhoneX,IPhone XS, IPhone XR, IPhone XS Max, 刘海屏
react-native-safe-area-view
2018.11.1更新:
应简书小伙伴“RNAmateur”的要求,将其封装的组件更新至此,感谢支持
https://www.jianshu.com/p/d805e022c236
https://www.jianshu.com/p/43c2f39992b4
2018.10.24更新:
UI组件库:
https://www.jianshu.com/p/d364c4945083
2018.10.10更新:
格式化输入框textInput:
https://github.com/react-native-community/react-native-text-input-mask
美团开源的ReactNative库,做了Android和IOS两端的统一,其设计思想值得大家学习一下
https://juejin.im/entry/5bb027a2e51d450e7a2502ab
https://github.com/meituan/beeshell
react-native使用蚂蚁金服的antd-mobile组件库教程
https://www.jianshu.com/p/029b6c6b5047
https://rn.mobile.ant.design/index-cn
https://github.com/879479119/react-native-shadow 设置Android的阴影显示
https://github.com/songxiaoliang/react-native-feedback 用户反馈
添加事件到日历:
https://github.com/vonovak/react-native-add-calendar-event
动态修改Android的softmodule:
react-native-android-keyboard-adjust
资源列表:https://github.com/reactnativecn/react-native-guide
https://js.coach/
推荐一个不错的React Native 组件和库的资源列表:
https://reactnativeexample.com/
几个UI组件库:
react-native-elements
NativeBase
react-native-ui-lib
https://www.jianshu.com/p/c7a8f115dca0
https://segmentfault.com/a/1190000010875332
React Native UI 组件库, 超过 20 个纯 JS(ES6) 组件, 专注于内容展示和操作控制。
https://github.com/rilyu/teaset/blob/HEAD/docs/cn/README.md
前辈整理的第三方:
[https://www.jianshu.com/p/bb5f68a236d3]https://www.jianshu.com/p/bb5f68a236d3
升级版的webview用于安卓平台:react-native-webview-android
和listview搭配可以进行 内容从底部开始进行渲染
react-native-invertible-scroll-view
网格布局:
https://www.npmjs.com/package/react-native-gridview
性能优化的可拖动排序的标签组件react-native-drag-to-sort-tags
https://github.com/bolan9999/react-native-drag-to-sort-tags
网络请求框架:https://github.com/niftylettuce/frisbee
http://www.hangge.com/blog/cache/detail_1622.html
https://github.com/visionmedia/superagent/
一个IOS样式的跨平台(cross-platform)平台的switch组件
https://github.com/react-native-studio/react-native-switchbutton
基于android SmartRefreshLayout https://github.com/scwang90/SmartRefreshLayout 开发的插件,可提供类似ios的弹性刷新
https://github.com/react-native-studio/react-native-SmartRefreshLayout
跨平台数据库开发组件:
https://github.com/andpor/react-native-sqlite-storage
生成二维码:
https://github.com/cssivision/react-native-qrcode
生成各类图表:
https://github.com/tomauty/react-native-chart
https://github.com/wuxudong/react-native-charts-wrapper
https://github.com/capitalone/react-native-pathjs-charts
基于 React Native 实现的支付宝钱包 UI 界面:
https://github.com/superRaytin/react-native-alipay
集成微信功能:
https://github.com/yorkie/react-native-wechat
对ListView/FlatList的封装,可以很方便的分页加载网络数据,还支持自定义下拉刷新View和上拉加载更多的View
https://github.com/geek-prince/react-native-page-listview
时间选择框
https://github.com/xgfe/react-native-datepicker
悬浮效果的按钮:
https://github.com/mastermoo/react-native-action-button
下拉框控件react-native-modal-dropdown
https://github.com/sohobloo/react-native-modal-dropdown
跨三端开发模块(Android/Ios/Web)+ 状态管理框架dva
https://github.com/blankapp/react-native-template-ui-based
react-native 身份证扫描(Android版)
https://www.npmjs.com/package/react-native-scanidcard
加载多张图片,并添加缓存,快速浏览:react-native-fast-image:
https://github.com/DylanVann/react-native-fast-image
React Native SSH SFTP 组件:
https://www.jianshu.com/p/504a4b3ec34d
React Native使用百度Echarts显示图表:
https://www.jianshu.com/p/68cd9af0bff4
基于ART的SVG库:https://github.com/react-native-community/react-native-svg
2018 年 2 月 15 个有意思的 JavaScript 和 CSS 库:
https://www.jianshu.com/p/bee270f34e75
react-native-pull-refresh-view:适配Android和Ios
https://github.com/reactnativecomponent/react-native-pull-refresh-view
react-native适配iPhoneX 目前最简单的方法:
http://bbs.reactnative.cn/topic/5418/react-native%E9%80%82%E9%85%8Diphonex-%E7%9B%AE%E5%89%8D%E6%9C%80%E7%AE%80%E5%8D%95%E7%9A%84%E6%96%B9%E6%B3%95
一个ReactNative仿网易新闻的Demo:
https://github.com/h406621397/NeteaseNews
React Native如何使用自定义的iconfront:
https://juejin.im/post/5ac80a265188255569193bb0
高德地图插件: https://gitee.com/1148030615/rn-AmapLocation
脚手架:https://github.com/Murrayee/murray
React Native开发实用技巧
https://www.jianshu.com/p/ccba80f34f33
最灵活的UI控件库:React Native UI Lib
https://www.jianshu.com/p/c2771ff962a4?utm_campaign=maleskine&utm_content=note&utm_medium=reader_share&utm_source=weibo
一个android弹幕插件
https://github.com/react-native-studio/react-native-android-danmaku
react-native-baidumap-sdk
与 react-native-amap3d 相似,除此之外还实现了:
独立定位模块
地理编码/逆地理编码
点聚合组件
Mastering React Native(React Native高级教程电子书)
PDF版:Mastering React Native
Word版:Mastering React Native
https://www.jianshu.com/u/3a2d89402aca
React Native TTS is a text-to-speech library for React Native on iOS and Android.
https://github.com/ak1394/react-native-tts
SuperAgent 是一个流行的第三方 Ajax 库,专注于处理服务端/客户端的 http 请求。
对比现存的各种请求 API 库,SuperAgent 更加轻量、优雅、易读、易学。
最重要的是它可以用于 Node.js
GitHub 主页地址:https://github.com/visionmedia/superagent/
原文出自:www.hangge.com 转载请保留原文链接:http://www.hangge.com/blog/cache/detail_1622.html
React Native 截屏组件
React Native 截屏组件:react-native-view-shot,可以截取当前屏幕或者按照当前页面的组件来选择截取,如当前页面有一个图片组件,一个View组件,可以选择截取图片组件或者View组件。支持iOS和安卓。
录音:
react-native-audio
https://github.com/jsierles/react-native-audio
播放:
react-native-sound
https://github.com/zmxv/react-native-sound
进度条
https://github.com/oblador/react-native-progress
https://www.jianshu.com/u/c79c9f26d774
Axios 是一个基于 promise 的 HTTP 库,可以用在浏览器和 node.js 中。
中文文档:https://www.kancloud.cn/yunye/axios/234845
英文文档:https://github.com/axios/axios#using-applicationx-www-form-urlencoded-format
使用:https://www.jianshu.com/p/df464b26ae58
Axios 是一个基于 promise 的 HTTP 库,可以用在浏览器和 node.js 中。
https://www.kancloud.cn/yunye/axios/234845
react-native-router-flux 路由框架
react-native-vector-icons 矢量字体库图标
realm-js realm 数据库
react-native-i18n 多语言-国际化插件
react-native-image-viewer 图片预览
react-native-modalbox 模态框
react-native-spinkit loading
react-native-textinput-effects 输入框
url-parse url解析
react native仿微信性别选择-自定义弹出框
极客学院:http://wiki.jikexueyuan.com/project/react-native/
react native 轮播组件:支持循环,横竖轮播,支持卡片样式显示
https://github.com/easyui/react-native-ezswiper
基于EZPlayer封装的视频播放器,功能丰富,快速集成,可定制性强的rn组件
https://github.com/easyui/react-native-ezplayer
https://github.com/JackPu/react-native-percentage-circle
react-native-popup-dialog
React Native开源特效动画封装库模块(lottie-react-native)
开源项目地址:https://github.com/airbnb/lottie-react-native
react native学习笔记13——FlatList上拉加载
二维码扫描
react-native-smart-barcode
react native 渐变组件 react-native-linear-gradient
一个图片多选组件 react-native-syan-image-picker
GitgHub react-native-syan-image-picker
聊天组件
aurora-imui-react-native
使用请参考:http://www.jianshu.com/p/3557b55db81c
解决键盘遮挡问题
https://github.com/APSL/react-native-keyboard-aware-scroll-view
https://github.com/cheng-kang/react-native-lahk-marquee-label-vertical
这是一个从下向上滚动的跑马灯。
如果需要从右往左滚动的跑马灯,请使用react-native-lahk-marquee-label。
react-native-keyboard-aware-scroll-view
适用于 scrollView、ListView、FlatList、SectionList 上有输入框的问题
解决键盘挡住输入框问题
点击按钮让scrollView滚动到指定位置
http://www.jianshu.com/p/e7f26851b9e8
读取PDF文件
https://github.com/wonday/react-native-pdf
语音播报:
https://github.com/somonus/react-native-speech
switch 开关
https://github.com/shahen94/react-native-switch
IOS和Android白屏
react-native-splash-screen
侧滑栏
https://github.com/root-two/react-native-drawer
带索引的分类列表,通讯录,省市地址等
https://github.com/rgovindji/react-native-atoz-list
react-native之站在巨人的肩膀上
http://www.cnblogs.com/skylor/p/5783824.html
React Native 【 第三方分享 】、【 第三方登录 】. 支持平台:QQ、QQ空间、微信、朋友圈、新浪微博、FaceBook... 【 Android、 IOS 双平台 】
项目地址:https://github.com/songxiaoliang/react-native-share
使用:http://blog.csdn.net/u013718120/article/details/75040805
基于FlatList的下拉、上拉刷新组件
react-native-refresh-list-view
倒计时组件
https://github.com/ljunb/rn-countdown
react-native-agora 基于Agora(YY技术团队)直播,视频会议组件
https://github.com/DBshaoYan/react-native-agora
相关资源文章
https://yq.aliyun.com/articles/78154?t=t1
http://www.jianshu.com/p/53ff78168acc
少停的博客分享
扫描二维码
https://github.com/MarnoDev/AC-QRCode-RN
复选按钮--checkbox
https://github.com/crazycodeboy/react-native-check-box
单选按钮-radioButton
https://github.com/wayne214/react-native-flexi-radio-button
http://makaidong.com/sinat_17775997/1/322_11689039.html
持久化存储
https://github.com/almost/react-native-sqlite
https://realm.io/docs/react-native/latest/
获取权限
https://github.com/yonahforst/react-native-permissions
文件上传
https://github.com/eduedix/react-native-networking
拍照:
https://github.com/remobile/react-native-camera
视频录制:
https://github.com/phuochau/react-native-beautiful-video-recorder
react-native-camera是一个第三方的开源库,我们可以通过它来调用设备的摄像头,
从而实现拍照、或者录像功能。
react-native-camera功能强大,我们可以选择使用哪个摄像头、是拍照还是录像、是否录制声音、是否开启闪光灯、视图比例、拍摄质量、拍摄方向、触摸功能、条形码/二维码扫描等等。
GitHub主页地址:https://github.com/lwansbrough/react-native-camera
一个功能完善的 react-native 高德地图组件:
https://github.com/qiuxiang/react-native-amap3d
React Native中的懒加载(lazyload)
https://github.com/magicismight/react-native-lazyload
图片缓存方案:
https://github.com/wcandillon/react-native-img-cache
https://github.com/remobile/react-native-cache-image
https://github.com/MarnoDev/react-native-open-project
手势缩放图片:
https://github.com/ldn0x7dc/react-native-transformable-image
弹框-全遮盖的弹出层
react-native-modalbox
诸多reactNative第三方控件,助大家一臂之力
https://js.coach/react-native
IOS or Android白屏问题
react-native-splash-screen
Toast吐司:
https://github.com/remobile/react-native-toast
https://github.com/crazycodeboy/react-native-easy-toast
https://github.com/RazerTang/react-native-root-toast2
日历控件:
https://github.com/airbnb/react-dates
https://github.com/wix/react-native-calendars/blob/master/README.md
https://www.npmjs.com/package/react-native-calendars
加解密库:
crypto-js
时间选择器
react-native-picker
https://github.com/beefe/react-native-picker
坐标转换
以后处理坐标转换可能会用到的,用到的时候再看https://github.com/wandergis/coordtransform
Button按钮
简单的按钮控件
https://github.com/APSL/react-native-button
react-native-speech
语音播报组件
react-native-snap-carousel
简单的轮播框组件,带有断裂效果,应用于Android和iOS
调用系统的电话、短信、邮件、浏览器:
三方组件:react-native-communications
地址:https://github.com/anarchicknight/react-native-communications
网址里面的 README.md 写的非常的清楚,而且还有例子可供参考,相当方便,iOS和Android亲测没有问题
强烈推荐大家看一下
轮播图:npm install react-native-swiper--save
倒计时:npm install react-native-sk-countdown --save
React Native 项目常用第三方组件汇总:
react-native-uploader //文件上传
https://github.com/aroth/react-native-uploader
0.gif
jpush-react-native //官方版本
https://github.com/jpush/jpush-react-native
react-native-jpush 由 React Native 中文网开发维护。
https://github.com/reactnativecn/react-native-jpush
pouchdb-react-native pouchdb插件
react-native-animatable 动画
react-native-carousel 轮播
react-native-countdown 倒计时
https://github.com/jackuhan/react-native-CountDowntimer 倒计时
react-native-device-info 设备信息
react-native-fileupload 文件上传
react-native-icons 图标
https://github.com/oblador/react-native-vector-icons 图标
react-native-image-crop-picker 图片选择器
react-native-image-picker 图片选择器
关于图片选择器的配置:http://www.cnblogs.com/shaoting/p/6148085.html
react-native-keychain iOS KeyChain管理
react-native-picker滚轮选择器:react-native-picker
react-native-picker-Android Android 滚轮选择器
react-native-refreshable-listview 可刷新列表
react-native-scrollable-tab-view 可滚动标签
react-native-side-menu 侧栏
react-native-swiper 轮播
react-native-video 视频播放
react-native-viewpager 分页浏览
react-native-scrollable-tab-view 可滑动的底部或上部导航栏框架
react-native-tab-navigator 底部或上部导航框架(不可滑动)
react-native-check-box CheckBox
react-native-splash-screen 启动白屏问题
react-native-simple-router 简易路由跳转框架
react-native-storage 持久化存储
react-native-sortable-listview 分类ListView
react-native-htmlview 将 HTML 目录作为本地视图的控件,其风格可以定制
react-native-easy-toast 一款简单易用的 Toast 组件,支持 Android&iOS.
选项卡https://github.com/exponentjs/react-native-tab-navigator
点击打开链接
material组件库(各种漂亮的小组件)https://github.com/xinthink/react-native-material-kit
点击打开链接
base组件库(各种封装不错的小组件)http://nativebase.io/docs/v0.4.6/components#anatomy
https://github.com/GeekyAnts/NativeBase
点击打开链接
不错的按钮
https://github.com/mastermoo/react-native-action-button
https://github.com/ide/react-native-button
输入框表单验证
https://github.com/gcanti/tcomb-form-native
https://github.com/FaridSafi/react-native-gifted-form
https://github.com/bartonhammond/snowflake
炫酷效果的 TextInput
https://github.com/halilb/react-native-textinput-effects
https://github.com/zbtang/React-Native-TextInputLayout
聊天
https://github.com/FaridSafi/react-native-gifted-chat
地图
https://github.com/lelandrichardson/react-native-maps
https://github.com/lovebing/react-native-baidu-map
动画
https://github.com/oblador/react-native-animatable
加载动画
https://github.com/maxs15/react-native-spinkit
抽屉效果
https://github.com/root-two/react-native-drawer
https://github.com/react-native-fellowship/react-native-side-menu
侧滑按钮
https://github.com/dancormier/react-native-swipeout
https://github.com/jemise111/react-native-swipe-list-view
图表
https://github.com/tomauty/react-native-chart
下拉放大
https://github.com/lelandrichardson/react-native-parallax-view
可滑动的日历组件
https://github.com/cqm1994617/react-native-myCalendar
日历弹出@IOS和Android
https://github.com/wayne214/react-native-modal-datetime-picker
语言转化和一些常用格式转换
https://github.com/joshswan/react-native-globalize
单选多选ListView
https://github.com/hinet/react-native-checkboxlist
选择按钮
https://github.com/sconxu/react-native-checkbox
二维码
https://github.com/ideacreation/react-native-barcodescanner
制作本地库
https://github.com/frostney/react-native-create-library
影音相关
https://github.com/MisterAlex95/react-native-record-sound
安卓录音
https://github.com/bosung90/react-native-audio-android
提示消息的Bar
https://github.com/KBLNY/react-native-message-bar
iOS原生TableView
https://github.com/aksonov/react-native-tableview
点击弹出视图
https://github.com/jeanregisser/react-native-popover
https://github.com/instea/react-native-popup-menu
3D Touch
https://github.com/madriska/react-native-quick-actions
双平台兼容的ActionSheet
https://github.com/beefe/react-native-actionsheet
照片墙
https://github.com/ldn0x7dc/react-native-gallery
键盘遮挡问题
https://github.com/reactnativecn/react-native-inputscrollview
https://github.com/wix/react-native-keyboard-aware-scrollview
本地存储
https://github.com/sunnylqm/react-native-storage
星星
https://github.com/djchie/react-native-star-rating
国际化
https://github.com/joshswan/react-native-globalize
扫描二维码
https://github.com/lazaronixon/react-native-qrcode-reader
通讯录
https://github.com/rt2zz/react-native-contacts
加密
https://www.npmjs.com/package/crypto-js
缓存管理
https://github.com/reactnativecn/react-native-http-cache
ListView的优化
https://github.com/sghiassy/react-native-sglistview
图片和base64互转
https://github.com/xfumihiro/react-native-image-to-base64
安卓 iOS 白屏解决
https://github.com/mehcode/rn-splash-screen
Text跑马灯效果
https://github.com/remobile/react-native-marquee-label
清除按钮的输入框
https://github.com/beefe/react-native-textinput
WebView相关
https://github.com/alinz/react-native-webview-bridge
判断横竖屏
https://github.com/yamill/react-native-orientation
https://github.com/cnjon/react-native-pdf-view
获取设备信息
https://github.com/rebeccahughes/react-native-device-info
手势放大缩小移动
https://github.com/kiddkai/react-native-gestures
https://github.com/johanneslumpe/react-native-gesture-recognizers
下拉-上拉-刷新
https://github.com/FaridSafi/react-native-gifted-listview
https://github.com/jsdf/react-native-refreshable-listview
https://github.com/greatbsky/react-native-pull/wiki
上拉加载-下拉刷新
https://github.com/wayne214/react-native-swRefresh
下拉选择
https://github.com/alinz/react-native-dropdown
https://github.com/WheelerLee/react-native-dropdown-menu
图片查看
https://github.com/oblador/react-native-lightbox
照片选择
https://github.com/marcshilling/react-native-image-picker
https://github.com/ivpusic/react-native-image-crop-picker
图片加载进度条
https://github.com/oblador/react-native-image-progress
轮播视图
https://github.com/race604/react-native-viewpager
https://github.com/FuYaoDe/react-native-app-intro
https://github.com/appintheair/react-native-looped-carousel
https://github.com/leecade/react-native-swiper
模态视图
https://github.com/maxs15/react-native-modalbox
https://github.com/brentvatne/react-native-modal
https://github.com/bodyflex/react-native-simple-modal
毛玻璃效果
https://github.com/react-native-fellowship/react-native-blur
头像库
https://github.com/oblador/react-native-vector-icons
滑动选项卡
https://github.com/skv-headless/react-native-scrollable-tab-view
工程目录下终端输入 npm i XXX save
http://www.jianshu.com/p/e3ee0ab1eb82
react native仿微信性别选择-自定义弹出框
Axios 是一个基于 promise 的 HTTP 库,可以用在浏览器和 node.js 中。
react-native-progress
react-native-baidumap-sdk
与 react-native-amap3d 相似,除此之外还实现了:
独立定位模块
地理编码/逆地理编码
点聚合组件
最灵活的UI控件库:React Native UI Lib
React Native开发实用技巧
https://gitee.com/1148030615/rn-AmapLocation
https://github.com/easyui/react-native-ezswiper