All Projects → sospedra → react-native-dual

sospedra / react-native-dual

Licence: MIT License
ScrollView, FlatList, SectionList and ListView with dual background

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-dual

react-scrolling-color-background
background with color transitioning as you scroll, declarative and easy to setup
Stars: ✭ 53 (+89.29%)
Mutual labels:  color, background
React Native Sortable List
React Native Sortable List component
Stars: ✭ 678 (+2321.43%)
Mutual labels:  listview, scrollview
react-native-swipe-list
Swipeable FlatList Component for react-native
Stars: ✭ 22 (-21.43%)
Mutual labels:  listview, flatlist
Ultimaterefreshview
UltimateRefreshView 实现下拉刷新,上拉加载更多的轻量级库;支持RecyclerView ,ListView ,ScrollView & WebView
Stars: ✭ 64 (+128.57%)
Mutual labels:  listview, scrollview
UnityDynamicScrollView
Dynamic scrollView based on UGUI
Stars: ✭ 161 (+475%)
Mutual labels:  listview, scrollview
Overscroll Decor
Android: iOS-like over-scrolling effect applicable over almost all scrollable Android views.
Stars: ✭ 2,671 (+9439.29%)
Mutual labels:  listview, scrollview
Swipemenu
[DEPRECATED] A swipe menu for horizontal/vertical, support left/right and top/bottom directions
Stars: ✭ 817 (+2817.86%)
Mutual labels:  listview, scrollview
sshbg
Change terminal background when SSH'ing (on specific terminals)
Stars: ✭ 45 (+60.71%)
Mutual labels:  color, background
react-native-pullview
scrollview&&FlatList Pull refresh and loadmore
Stars: ✭ 26 (-7.14%)
Mutual labels:  scrollview, flatlist
popping-and-locking-vscode
Vivid and well balanced syntax for VS Code.
Stars: ✭ 26 (-7.14%)
Mutual labels:  color
huge listview
A performant list with any number of items.
Stars: ✭ 21 (-25%)
Mutual labels:  listview
node-color-log
⌨️ The more powerful JavaScript logger for NodeJS and browsers ✏️
Stars: ✭ 58 (+107.14%)
Mutual labels:  color
texthighlighter
a no dependency typescript npm package for highlighting user selected text
Stars: ✭ 17 (-39.29%)
Mutual labels:  color
GenericRecyclerAdapter
Easiest way to use RecyclerView. Reduce boilerplate code! You don't need to write adapters for listing pages anymore!
Stars: ✭ 53 (+89.29%)
Mutual labels:  listview
Toast
To use it in PCL or .NetStandard projects write this line of code : CrossToastPopUp.Current.ShowToastMessage("Message");
Stars: ✭ 51 (+82.14%)
Mutual labels:  color
SPKeyBoardAvoiding
It's a smart KeyBoard manager with active text field using Scroll View along with Constraints in Objective C & Swift 4
Stars: ✭ 22 (-21.43%)
Mutual labels:  scrollview
Colorwaver
🎨 An app to detect color palettes in the real world - powered by VisionCamera
Stars: ✭ 365 (+1203.57%)
Mutual labels:  color
terminal-style
🎨 Return your terminal message in style! Change the text style, text color and text background color from the terminal, console or shell interface with ANSI color codes. Support for Laravel and Composer.
Stars: ✭ 16 (-42.86%)
Mutual labels:  color
colorsys.rs
Lib for modifying colors and converting to other spaces
Stars: ✭ 28 (+0%)
Mutual labels:  color
vue-virtual-stream
Simple vue-virtualized package for Vue.js
Stars: ✭ 16 (-42.86%)
Mutual labels:  listview

react-native-dual

Build Status Code Climate Code Climate David JavaScript Style Guide

ScrollView, FlatList, SectionList and ListView with vertical dual background

Check the demo (live | source)

Before (problem) After (with dual)
no-dual with-dual

Usage

Instead of using normal React Native component favour the Dual one and share two special props: bottom and top to set the colors you want to display.

<DualScrollView
  bottom='cadetblue'
  top='rebeccapurple'
  keyboardShouldPersistTaps='always' // Use standard RN API also
>
  <Text>Mercury</Text>
  <Text>Venus</Text>
  <Text>Earth</Text>
</DualScrollView>

If you don't specify a bottom color will fallback to the component style (if you're already passing a style object there's no need for bottom extra prop):

<DualScrollView
  top='rebeccapurple'
  keyboardShouldPersistTaps='always' // Use standard RN API also
  style={{ backgroundColor: 'lemonchiffon' }}
>
  <Text>Mars</Text>
  <Text>Jupiter</Text>
  <Text>Saturn</Text>
</DualScrollView>

API

Exposed components are:

  • DualFlatList
  • DualListView (notice will be deprecated by React Native in the future)
  • DualScrollView
  • DualSectionList

And all of them intakes both top and bottom props:

  • top: string
  • bottom?: string

Also ScrollView accepts:

  • animated: bool - switch from ScrollView component to Animated.ScrollView
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].