Skip to content

Commit 87c7dbd

Browse files
authored
#updated readme
1 parent bbb3f02 commit 87c7dbd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,30 @@ OR
1919

2020
`yarn add rn-faded-scrollview`
2121

22+
## Simple
23+
24+
```javascript
25+
import RNFadedScrollView from 'rn-faded-scrollview';
26+
27+
// Within your render function
28+
<RNFadedScrollView
29+
allowStartFade={true}
30+
horizontal={false}
31+
fadeSize={10}
32+
style={styles.backgroundStyle}
33+
bounces={false}
34+
>
35+
//other views
36+
</RNFadedScrollView>
37+
38+
// Later on in your styles..
39+
var styles = StyleSheet.create({
40+
backgroundStyle: {
41+
flex: 1
42+
}
43+
});
44+
```
45+
2246
## Documentation
2347
This library accepts all the props of [ScrollView](https://reactnative.dev/docs/scrollview) and some additional props.
2448
### Props

0 commit comments

Comments
 (0)