# react-native-colored-scrollbar

> A customisable colored scrollbar component for react native

Latest version **1.0.0** (published 2021-12-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-colored-scrollbar
pnpm add react-native-colored-scrollbar
yarn add react-native-colored-scrollbar
bun add react-native-colored-scrollbar
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-12-25 |
| First published | 2021-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Or Fayne |
| Maintainers | xfayne |
| Keywords | react-native, react-component, react-native-component, react native, scrollbar, react-native-scrollbar, colored-scrollbar, react-native-colored-scrollbar, costume-scrollbar, react-native-costume-scrollbar, scrollview, react-native-scrollviewr, colored-scrollview, react-native-colored-scrollview, costume-scrollview, react-native-costume-scrollview |

## Links

- npm: https://www.npmjs.com/package/react-native-colored-scrollbar
- Repository: https://github.com/xfayne/react-native-colored-scrollbar
- Homepage: https://github.com/xfayne/react-native-colored-scrollbar#readme
- Issues: https://github.com/xfayne/react-native-colored-scrollbar/issues
- npm.io page: https://npm.io/package/react-native-colored-scrollbar

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) ^15.8.0

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-12-25

## README

<h1 align="center">react-native-colored-scrollbar</h1>

<p align="center">A customisable colored scrollbar component for react native<p>
  
## Description

Simple, lightweight and easy to use custom scrollbar component.<br/> Pass the component customisable props and your content inside it.

## Example

<p align="center">
  <img width="242" height="500" src="https://github.com/xfayne/react-native-colored-scrollbar/blob/master/examples/scrollbar-loop.gif?raw=true">
</p>

## Install

```bash
npm install react-native-colored-scrollbar
```

## Usage

```jsx
import React from 'react';
import {Text, View, StyleSheet} from 'react-native';
import ScrollBar from 'react-native-colored-scrollbar';
import {styles,book} from './data';

export default function App() {
  return (
    <>
      <View style={{flex: 1, paddingTop: 50, backgroundColor:'#28BFA7'}}>
      
        <View style={{alignItems: 'center'}}>
          <Text style={styles.header}>Colored Scroll Bar</Text>
        </View>
        
        <ScrollBar
          indicatorBackground="#006064"
          indicatorColor="#18FFFF"
          persistent=true
          style={{padding: 20, flex:1, backgroundColor:'#625554'}}>

          <Text style={styles.title}>{book.title}</Text>
          <Text style={styles.text}>{book.description}</Text>

        </ScrollBar>
        
      </View>
    </>
  );
}

```

### Props

Common props you may want to specify include:

| Prop                    | Description                                                                                          | Default    |
| ----------------------- | ---------------------------------------------------------------------------------------------------- | ---------- |
| `indicatorColor`        | Color of the scroll indicator                                                                        |#CFD8DC     |
| `indicatorBackground`   | Background color of the scroll indicator                                                             |#455A64     |
| `indicatorWidth`        | Width of the scroll indicator                                                                        | 6          |
| `persistent`            | Causes the scrollbars not to turn transparent when they are not in use                               | false      |
| `style`                 | Style object of the ScrollView container                                                             | null       |

## License

MIT Licensed. Copyright © [Or Fayne](https://github.com/xfayne) 2021.

---
_Source: https://npm.io/package/react-native-colored-scrollbar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
