Skip to content

Commit b4f525f

Browse files
committed
#container style customization.
1 parent 9d70893 commit b4f525f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This library accepts all the props of [ScrollView](https://reactnative.dev/docs/
3232
### Styling
3333
For styling pass these props.
3434

35-
`startFadeStyle`, `endFadeStyle` and `dividerStyle`.
35+
`containerStyle`, `startFadeStyle`, `endFadeStyle` and `dividerStyle`.
3636

3737
### Events
3838
| Name | Callback param | Description |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rn-faded-scrollview",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
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": {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default class RNFadedScrollView extends Component {
122122
render() {
123123
const endFadeEnable = this.isEndFadeAllowed();
124124
return (
125-
<View style={[styles.container, { flexDirection: this.props.horizontal ? "row" : "column" }]}
125+
<View style={[styles.container, this.props.containerStyle, { flexDirection: this.props.horizontal ? "row" : "column" }]}
126126
onLayout={this._onLayout.bind(this)}>
127127
{(this.state.allowStartFade && this.props.allowDivider) && this.getDivider()}
128128
<ScrollView

0 commit comments

Comments
 (0)