Coder Social home page Coder Social logo

react-naitve-seamlessscroll's Introduction

Screenshots

react-naitve-SeamlessScroll

react-native 简单的无缝平滑滚动组件 用于横向或纵向的平滑滚动

Browsers

  • support ios and android

Install

    npm install react-native-seamless-scroll
    yarn add react-native-seamless-scroll

Usage

import { SeamlessScroll } from 'react-native-seamless-scrolls';

<SeamlessScroll scrolltime={8000} direction='row' meter={20} styles={{ width: 320, flexDirection: 'row' }}>
  <View style={{ paddingRight: 20 }}>
    <Text>
      测试公告内容是否能正常播放,会不会卡条!
    </Text>
  </View>
  <View>
    <Text style={styles.noticeText}>
      测试公告内容是否能正常播放,会不会卡条!
    </Text>
  </View>
</SeamlessScroll>

API

属性 说明 类型 默认值
direction 必选 方向 默认纵向'vertical' 横向'row' string vertical
meter 选填 调节参数(在滚动元素有padding或margin时做对应调节,或处理ios和android兼容调节) number 0
styles 必选 对应的滚动适口宽度或高度(width或height)一般为滚动元素总高(宽)度 Object null
scrolltime 滚动一个周期所需时间(毫秒) number 5000

react-naitve-seamlessscroll's People

Contributors

lvzhiyi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.