All Projects → chrisfisher → React Native Directed Scrollview

chrisfisher / React Native Directed Scrollview

Licence: mit
UNMAINTAINED- see below. A natively implemented scrollview component which lets you specify different scroll directions for child content.

Programming Languages

javascript
184084 projects - #8 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to React Native Directed Scrollview

any-scroll
🚀 模拟scrollview, 支持pc/移动端, 让实现Tab/Slider等组件轻而易举.
Stars: ✭ 45 (-67.63%)
Mutual labels:  scroll, scrollview
Unitydynamicscrollrect
An optimized approach to lists with dozens of elements and a Pooling system
Stars: ✭ 157 (+12.95%)
Mutual labels:  scroll, scrollview
Txscrolllabelview
🌭TXScrollLabelView, the best way to show & display information such as adverts / boardcast / onsale e.g. with a customView.
Stars: ✭ 714 (+413.67%)
Mutual labels:  scroll, scrollview
React Native Swiper Flatlist
👆 Swiper component implemented with FlatList using Hooks & Typescript + strict automation tests with Detox
Stars: ✭ 217 (+56.12%)
Mutual labels:  scroll, scrollview
Rnlive
RNLive ----> react-native 仿映客直播 支持iOS/Android
Stars: ✭ 370 (+166.19%)
Mutual labels:  native, reactnative
Jxpagelistview
高仿闲鱼、转转、京东、中央天气预报等主流APP列表底部分页滚动视图
Stars: ✭ 377 (+171.22%)
Mutual labels:  scroll, scrollview
Rsdayflow
iOS 7+ Calendar (Date Picker) with Infinite Scrolling.
Stars: ✭ 843 (+506.47%)
Mutual labels:  scroll, scrollview
Bacardi
Bacardi project is an effort to provide multi-language binding for Node.js native layer.
Stars: ✭ 115 (-17.27%)
Mutual labels:  native
Jxsegmentedview
A powerful and easy to use segmented view (segmentedcontrol, pagingview, pagerview, pagecontrol, categoryview) (腾讯新闻、今日头条、QQ音乐、网易云音乐、京东、爱奇艺、腾讯视频、淘宝、天猫、简书、微博等所有主流APP分类切换滚动视图)
Stars: ✭ 1,905 (+1270.5%)
Mutual labels:  scrollview
React Video Scroll
A React component to seek or control the video frame rate on scroll.
Stars: ✭ 114 (-17.99%)
Mutual labels:  scroll
Footer Reveal
A jQuery plugin for easy implementation of the 'fixed/reveal' footer effect. Demo here:
Stars: ✭ 111 (-20.14%)
Mutual labels:  scroll
React Native Animations
React Native Animations
Stars: ✭ 115 (-17.27%)
Mutual labels:  reactnative
React Native Css Gradient
React Native css gradients - react-native-linear-gradient with css gradient support
Stars: ✭ 129 (-7.19%)
Mutual labels:  native
Pull To Refresh
ESPullToRefresh is developed and maintained by Vincent Li. If you have any questions or issues in using ESPullToRefresh, welcome to issue. If you want to contribute to ESPullToRefresh, Please submit Pull Request, I will deal with it as soon as possible.
Stars: ✭ 1,591 (+1044.6%)
Mutual labels:  scrollview
React Native Navigation Animation
Transition navigation component for React Native
Stars: ✭ 133 (-4.32%)
Mutual labels:  reactnative
React Scroll Parallax
🔮 React components to create parallax scroll effects for banners, images or any other DOM elements
Stars: ✭ 1,699 (+1122.3%)
Mutual labels:  scroll
React Native Modalize
A highly customizable modal/bottom sheet that loves scrolling content.
Stars: ✭ 2,119 (+1424.46%)
Mutual labels:  scrollview
React Nodegui Starter
Starter repository for react based native desktop apps using react-nodegui
Stars: ✭ 132 (-5.04%)
Mutual labels:  native
Openrtb
Go (Golang) OpenRTB 2.5, 3.0 / AdCOM 1.0 / Native 1.2 types/enums
Stars: ✭ 123 (-11.51%)
Mutual labels:  native
Hycycleview
多页面分页、循环、嵌套滑动悬停
Stars: ✭ 123 (-11.51%)
Mutual labels:  scrollview

UNMAINTAINED

This library is no longer actively maintained and is not guaranteed to work with the latest version of React Native. Feel free to fork the repo and/or adapt the code.

react-native-directed-scrollview

demo

A natively implemented scrollview component which lets you specify different scroll directions for child content.

The iOS implementation extends the default UIScrollView component, whereas the Android implementation is custom and aims to provide some limited parity with the iOS api.

The following props are supported:

Prop Default Description
scrollEnabled true When false, the view cannot be scrolled via touch interaction.
pinchGestureEnabled true When true, ScrollView allows use of pinch gestures to zoom in and out.
minimumZoomScale 1.0 How far the content can zoom out.
maximumZoomScale 1.0 How far the content can zoom in.
bounces true Whether content bounces at the limits when scrolling.
bouncesZoom true Whether content bounces at the limits when zooming.
alwaysBounceHorizontal false When bounces is enabled, content will bounce horizontally even if the content is smaller than the bounds of the scroll view.
alwaysBounceVertical false When bounces is enabled, content will bounce vertically even if the content is smaller than the bounds of the scroll view..
ios showsVerticalScrollIndicator true Whether vertical scroll bars are visible.
ios showsHorizontalScrollIndicator true Whether horizontal scroll bars are visible.

The following methods are supported:

Method Example Description
scrollTo scrollTo({x: 100, y: 100, animated: true}) Scrolls to a given x and y offset.

Installation

  • npm install react-native-directed-scrollview --save
  • react-native link (or rnpm link)

Usage

To work properly this component requires that a fixed-size content container be specified through the contentContainerStyle prop.

import ScrollView, { ScrollViewChild } from 'react-native-directed-scrollview';
...

export default class Example extends Component {
  render() {
    return (
      <ScrollView
        bounces={true}
        bouncesZoom={true}
        maximumZoomScale={2.0}
        minimumZoomScale={0.5}
        showsHorizontalScrollIndicator={false}
        showsVerticalScrollIndicator={false}
        contentContainerStyle={styles.contentContainer}
        style={styles.container}
      >
        <ScrollViewChild scrollDirection={'both'}>
          // multi-directional scrolling content here...
        </ScrollViewChild>
        <ScrollViewChild scrollDirection={'vertical'}>
          // vertically scrolling content here...
        </ScrollViewChild>
        <ScrollViewChild scrollDirection={'horizontal'}>
          // horizontally scrolling content here...
        </ScrollViewChild>
      </ScrollView>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  contentContainer: {
    height: 1000,
    width: 1000,
  },
})

See the example project for more detail.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].