react-native demo 集合
-
使用
git clone https://github.com/QYJHULINHUA/react-native-demo-.git npm install
-
demo集合
-
demo1--banaer轮播图
轻量级轮播图,仅需一个文件(/app/banner/banner.js),支持ios、android
使用简单
<Banner imgArr={dataList} figureHeight={240} dotPlace='center' dotDefaultColor="white" dotSelectedColor="red" dotRadius={5} dotMargin={5} dotParentStyle={{paddingLeft:10}} isHasDotBackground={true} dotBackgroundHeight={30} dotBackgroundColor="#55555599" autoTime={2000} isAutoPlay={true} onPageClick={this.onPageClick} isHasTitle={true} titleStyle={{color:'orange',fontSize:12,fontWeight:'400',paddingRight:10}}
/>
-
demo2--pop Modal 模态视图
react-native-modalbox 的使用,使用介绍请点击这里
-
demo3--百度地图
react-native-baidu-map 的使用,使用介绍请点击这里
-
demo4--ios原生的日期选择器demo(速度还行,但是没有什么出彩的地方,只是使用了一下)
-
demo5 非纯粹react native 组建视图demo,而是javascript 数据结构判断及判空。
使用方便,代码简单易懂!
在做项目的时候,因数据交互,或者代码原因 很多时候数据类型及其是否存在很难把控。往往我们需要做一些判断,为了提高代码的重用率,保证代码的稳健型,及方便维护。demo5把这些东西专门整理了一下,也会继续维护。
-
demo6-图片缓存
react-native-cached-image react-native-image-fallback react-native-ximage react-native-web-image
-
demo7-微信sdk
-