收录一些好用的第三方组件,以方便日常的使用,大家有什么推荐的也可以跟我说,我加进去。如有冒犯,可以联系我删除,O(∩_∩)O谢谢。我发现有什么新的也会更新进去。
React Native 项目常用第三方组件汇总:
React-native-animatable 动画
react-native-carousel 轮播
react-native-countdown 倒计时
react-native-device-info 设备信息
react-native-fileupload 文件上传
react-native-icons 图标
react-native-image-picker 图片选择器
react-native-keychain iOS KeyChain管理
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/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
语言转化和一些常用格式转换
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
PDF
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/alinz/react-native-dropdown
图片查看
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
A ScrollView-like component that:
Has a parallax header
Has an optional sticky header
Is composable with any component that expects a ScrollView (e.g. ListView or InfiniteScrollView)
Can be nested within other views
Works on iOS and Android
react-native-parallax-scroll-view
工程目录下终端输入 npm i XXX save
2017-4-25新增.
1.https://github.com/aroth/react-native-uploader 文件上传
图片.gif
2.https://github.com/oblador/react-native-animatable 动画
图片.gif
图片.gif
图片.gif
图片.gif
图片.gif
图片.gif
图片.gif
图片.gif
图片.gif
3.https://github.com/oblador/react-native-vector-icons 图标
图片.gif
4.https://github.com/ivpusic/react-native-image-crop-picker 图片选择器(可多选)
图片.png
图片.png
图片.png
5.https://github.com/beefe/react-native-picker 滚轮选择器
图片.png
图片.png
6.https://github.com/jsdf/react-native-refreshable-listview 下拉刷新listview
图片.png
7.https://github.com/skv-headless/react-native-scrollable-tab-view 可滚动标签
图片.gif
图片.gif
8.https://github.com/react-native-community/react-native-side-menu 侧栏
图片.gif
9.https://github.com/leecade/react-native-swiper 图片轮播
图片.gif
图片.gif
图片.gif
图片.gif
图片.gif
10.https://github.com/crazycodeboy/react-native-check-box CheckBox
图片.gif
11.https://github.com/crazycodeboy/react-native-easy-toast Toast 组件
图片.gif
12.https://github.com/xinthink/react-native-material-kit 各种漂亮的小组件
图片.gif
- https://github.com/GeekyAnts/NativeBase base组件库
14.https://github.com/mastermoo/react-native-action-button 不错的按钮
图片.gif
15.https://github.com/halilb/react-native-textinput-effects
https://github.com/zbtang/React-Native-TextInputLayout 炫酷效果的 TextInput
图片.gif
图片.gif
16.https://github.com/FaridSafi/react-native-gifted-chat 聊天
图片.png
17.https://github.com/lovebing/react-native-baidu-map 百度地图
(集成百度地图详细教程:http://www.jianshu.com/p/eceb7e66fa5e)
图片.png
图片.png
18.https://github.com/maxs15/react-native-spinkit 加载动画
图片.gif
19.https://github.com/dancormier/react-native-swipeout
https://github.com/jemise111/react-native-swipe-list-view 侧滑按钮
图片.gif
图片.gif
20.https://github.com/wuxudong/react-native-charts-wrapper 图表(功能炒鸡强大)
图片.png
图片.png
21.https://github.com/lelandrichardson/react-native-parallax-view 下拉放大
图片.gif
22.https://github.com/cqm1994617/react-native-myCalendar 可滑动的日历组件
图片.gif
图片.gif
图片.gif
23.https://github.com/KBLNY/react-native-message-bar 提示消息的Bar
图片.gif
24.https://github.com/jeanregisser/react-native-popover 点击弹出视图
图片.gif
25.https://github.com/madriska/react-native-quick-actions 3D Touch
图片.png
26.https://github.com/beefe/react-native-actionsheet 双平台兼容的ActionSheet
27.https://github.com/reactnativecn/react-native-inputscrollview
https://github.com/wix/react-native-keyboard-aware-scrollview键盘遮挡问题
28.https://github.com/oblador/react-native-image-progress 图片加载进度条
图片.gif
29.https://github.com/maxs15/react-native-modalbox
https://github.com/bodyflex/react-native-simple-modal 模态视图
图片.gif
图片.gif
图片.gif
30.https://github.com/react-native-community/react-native-blur 毛玻璃效果
图片.gif
一个文本语音播放组件:
使用手机系统自带的tts功能合成语音的组件,可将输入的文本转为语音播放。
https://github.com/somonus/react-native-speech文本语音播放组件
可以是一个字符串或者一个对象,当是一个字符串时,则默认以中文播放当前字符串。如果是一个对象,则根据对象的key进行播放。对象包含的key有:
text: 需要播放的文本内容
language: 需要以哪种语言播放
2017.5.2更新
按钮特效 react-native-circle-button▼
项目名称:react-native-circle-button功能介绍:可以支持双平台的原型菜单按钮,作者灵感来源于国外设计网站dribbble,虽然可能项目用到的可能性比较小,但是可以看下实现过程。仓库地址:https://github.com/dwicao/react-native-circle-button
酷炫折叠动画 react-native-foldview▼
项目名称:react-native-foldview功能介绍:纯 JS 代码编写的,一个带折叠动画的列表项 UI 组件,可用在滚动列表中,展示列表详情之类的,动画效果也不错。仓库地址:https://github.com/jmurzy/react-native-foldview
2017.5.4更新
方块滚动轮播图,类似产品块cell展示,或者卡片式滑动
react-native-snap-carousel
2017.5.25更新
这个是一个下拉选项组件
A react-native dropdown/picker/selector component for both Android & iOS.
国人做的,貌似不错,支持个。
react-native-modal-dropdown
cnblog的中文解释
一个比较美丽的提示气泡toast
react-native-root-toast