首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏谦谦君子修罗刀

    react-native-swiper组件-横扫你的轮播图

    来瞧瞧本文的主题react-native-swiper。 用手动去计算偏移量并且下载定时器的方法去封装轮播图功能显得太过繁琐。正所谓他山之石可以攻玉。 而react-native-swiper正是一个能用于做轮播效果的三方组件。 1、github上的实例: https://github.com/leecade/react-native-swiper 2、基本命令 安装:npm i react-native-swiper --save 查看:npm view react-native-swiper 删除:npm rm react-native-swiper --save 3、属性 所有ScrollView组件拥有的属性react-native-swiper Basic Custom basic style & content Pagination Autoplay 4、基本案例(引导图) 引入外部组件 import Swiper from 'react-native-swiper

    4.1K60发布于 2018-05-02
  • 来自专栏岑志军的专栏

    ReactNative-轮播图

    ReactNative中有专门实现轮播图的模块react-native-swiper 安装组件 npm i react-native-swiper --save 导入组件 import Swiper from 'react-native-swiper'; 详细代码 import React, { Component } from 'react'; import { AppRegistry, StyleSheet , Text, Image, View } from 'react-native'; import Swiper from 'react-native-swiper'; import Dimensions

    1.7K50发布于 2018-05-28
  • 来自专栏伟大程序猿的诞生

    【React Native 安卓开发】----第三方框架的引用之React-native-Swiper框架实现欢迎页【第五篇】

    前言 今天要介绍的是React-native-Swiper这个RN开源框架,如果你不想用第三方的你也可以自己用viewPagerAndroid去实现,这里先不做介绍了,很简单。 想要了解React-native-Swiper源码的童鞋可以在github直接搜索React-native-Swiper。 ? 对于安卓同学来说应该都用过ViewPagerIndicator 做引导页或者导航栏,这里就不多说了,今天要讲的React-native-Swiper也是一款非常叼的开源框架,接下来然我们一起来看一看。 package.json里面有工程信息及所有依赖,相当于安卓的gradle,然后我们所依赖的那些库在node-modules里面,就相当于安卓之前的libs文件夹) 2.通过npm安装模块 npm i react-native-swiper 多了react-native-swiper文件 3.几个常用命令便于管理工程 查看模块:npm view react-native-swiper 删除模块:npm rm react-native-swiper

    1.9K50发布于 2019-01-21
  • 来自专栏京程一灯

    React-Native入门指南(三)

    4、图片轮播 这里图片轮播使用的是第三方组件react-native-swiper,当然React-Native是支持transform可以直接实现一套。 $ npm install react-native-swiper --save $ npm i react-timer-mixin --save (2)需要关闭React packager命令行和模拟器 github地址是: https://github.com/leecade/react-native-swiper 1)引入swiper,前面也提到了require. var Swiper = require ('react-native-swiper'); 2)使用swiper,将轮播图封装成单独的组件 var sliderImgs = [ 'http://images3.c-ctrip.com/

    1.4K30发布于 2019-03-28
  • 来自专栏海仔技术驿站

    React-day6

    react-native-router-flux/blob/v3/docs/MINI_TUTORIAL.md 路由的一些基本使用方法 配置首页的轮播图 轮播图官网:https://github.com/leecade/react-native-swiper utm_source=tuicool&utm_medium=referral 运行npm i react-native-swiper --save安装轮播图组件 导入轮播图组件import Swiper from 'react-native-swiper'; 其中,在Swiper身上,showsPagination={false}是用来控制页码的;showsButtons={false}是用来控制左右箭头显示与隐藏

    1.9K10发布于 2021-05-06
  • 来自专栏文大师的新世界

    7. 偷用Swiper简改

    决定做一个用react-native写的简单豆瓣客户端 测试版发布到google市场以获取豆瓣sdk做第三方豆瓣登录才好往下做Google市场需访问外国网站 修改bug以及以前代码留下的坑 简单修改react-native-swiper loc=108288&day_type=weekend&type=party react-native-swiper地址不是特别的好用但是目前我没发现更加实用的,这个组件本来是用来做轮播图的,看了一下源码 connect } from 'react-redux'; import { Actions } from 'react-native-router-flux'; import Swiper from 'react-native-swiper

    2.4K30发布于 2018-08-30
  • 来自专栏h5

    React Native聊天app实例|RN版聊天室

    react-native / react-native-cli 状态管理:react-redux 页面导航:react-navigation rn弹窗组件:rnPop 打包工具:webpack 2.0 轮播组件:react-native-swiper 0.55.0", "react-native-gesture-handler": "^1.3.0", "react-native-image-picker": "^1.0.2", "react-native-swiper

    7.4K10发布于 2019-09-01
  • 来自专栏向治洪

    React Native之常用第三方库

    react-native-refreshable-listview 可刷新列表 react-native-scrollable-tab-view 可滚动标签 react-native-side-menu 侧栏 react-native-swiper react-native-app-intro https://github.com/appintheair/react-native-looped-carousel https://github.com/leecade/react-native-swiper

    10.2K101发布于 2018-02-05
  • 来自专栏岑志军的专栏

    ReactNative-综合案例(02)

    from 'react' import { Text, View, Image, Dimensions } from 'react-native' import Swiper from 'react-native-swiper

    94970发布于 2018-05-28
  • 来自专栏Android机动车

    我的第一个RN项目——趣闻

    react-native-swiper 有点类似 Android 的 ViewPager实现轮播效果。 react-navigation 官方推荐的跳转,并且附带了 tab 组件。

    1.4K10发布于 2018-08-03
  • 来自专栏贾鹏辉的技术专栏@CrazyCodeBoy

    React Native 学习资源精选仓库

    ViewPager react-native-swiper:一款轮番滑动的组件。 react-native-looped-carousel:滚动轮播组件。

    3.5K70发布于 2018-05-07
  • 来自专栏IT架构圈

    RN组件库-别考虑了关注收藏吧

    react-native-app-intro https://github.com/appintheair/react-native-looped-carousel https://github.com/leecade/react-native-swiper

    2.5K40发布于 2018-05-31
  • 来自专栏网罗开发

    一份传男也传女的 React Native 学习笔记

    5.2 用到的第三方库: react-native-code-push:React Native 热更新 react-native-swiper:用于轮播图 react-navigation:TabBar

    2.6K20发布于 2021-01-29
  • 来自专栏向治洪

    React Native之ScrollView控件详解

    又如使用ScrollView实现一个简单的广告栏(当然我们可以使用第三方组件react-native-swiper)。如图: ?

    6.7K70发布于 2018-02-05
  • 来自专栏软件开发

    React Native学习笔记(三)—— 样式、布局与核心组件

    运行效果:  6.3、Swiper(轮播效果)  引入的命令: npm i --save react-native-swiper@nex 配置: https://github.com/leecade/react-native-swiper prettier */ import React from 'react'; import {Text, View} from 'react-native'; import Swiper from 'react-native-swiper

    16.8K32编辑于 2023-04-12
  • 来自专栏WecTeam

    京喜首页(微信购物入口)跨端开发与优化实践

    使用 Swiper 时在外面包一个 View,否则设置 margin 后会导致安卓下高度异常; Cannot read property 'x' of undefined,Swiper 底层使用的 react-native-swiper

    2.8K51发布于 2019-12-16
领券