Skip to content

Commit 169514f

Browse files
author
Malik Kawee
committed
#updated readme, minor changes
1 parent 9601525 commit 169514f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
A simple and customisable React Native component that allows you to add fade effect in ScrollView at both ends.
33

44
## Installation
5+
This library relies on [react-native-linear-gradient](https://github.com/react-native-community/react-native-linear-gradient). Follow setup instructions of linear gradient.
56

6-
Run `npm install rn-faded-scrollview` in your project directory.
7+
And now finally Run `npm install rn-faded-scrollview` in your project directory.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rn-faded-scrollview",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A simple and customizable React Native component that allows you to add fade effect in ScrollView at both ends.",
55
"main": "src/index.js",
66
"scripts": {
@@ -35,4 +35,4 @@
3535
"devDependencies": {
3636
"metro-react-native-babel-preset": "^0.59.0"
3737
}
38-
}
38+
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default class RNFadedScrollView extends Component {
101101
onLayout={this._onLayout.bind(this)}>
102102
<ScrollView
103103
{...this.props}
104-
style={[styles.scrollViewStyle, this.props.scrollViewStyle]}
104+
style={[styles.scrollViewStyle, this.props.style]}
105105
horizontal={this.props.isHorizontal}
106106
onContentSizeChange={this.onContentSizeChange}
107107
scrollEventThrottle={16}

0 commit comments

Comments
 (0)