File tree Expand file tree Collapse file tree 6 files changed +18
-14
lines changed
Expand file tree Collapse file tree 6 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,15 @@ class App extends React.PureComponent {
3434 return (
3535 < View style = { { flex : 1 , backgroundColor : "#eee" } } >
3636 < ScrollView >
37+ < View style = { {
38+ marginVertical : 60
39+ } } > < Text style = { {
40+ fontSize : 20
41+ } } > Examples:</ Text > </ View >
3742 < ScrollIndicator
3843 indicatorBgPadding = { 6 }
3944 viewBoxStyle = { {
4045 alignItems : "center" ,
41- marginTop : 60
4246 } }
4347 indicatorBackgroundStyle = { {
4448 height : 4 ,
Original file line number Diff line number Diff line change 1212 "dependencies" : {
1313 "react" : " 16.13.1" ,
1414 "react-native" : " 0.63.2" ,
15- "react-native-custom-scroll-indicator" : " ^1.0.1 "
15+ "react-native-custom-scroll-indicator" : " ^1.0.3 "
1616 },
1717 "devDependencies" : {
1818 "@babel/core" : " ^7.8.4" ,
Original file line number Diff line number Diff line change 1- #
1+ # react-native-custom-scroll-indicator examples
22
33## 使用 / Usage
44
55``` bash
6- yarn ios
6+ yarn & yarn ios
77
88# yarn start # second
99```
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-custom-scroll-indicator" ,
3- "version" : " 1.0.2 " ,
3+ "version" : " 1.0.5 " ,
44 "main" : " src/index.tsx" ,
55 "description" : " react native custom indicator" ,
66 "author" : " Jevons" ,
77 "keywords" : [
88 " react native" ,
9- " react native indicator"
9+ " react native indicator" ,
10+ " react-native-custom-scroll-indicator"
1011 ],
1112 "license" : " ISC"
1213}
Original file line number Diff line number Diff line change 66
77## Installation / 安装
88
9-
10-
11-
9+ ``` bash
10+ yarn add react-native-custom-scroll-indicator
11+ ```
1212
1313## Example
1414
1515
1616
1717
18-
1918## Usage / 使用
2019
20+ ``` tsx
21+ import ScrollIndicator from " react-native-custom-scroll-indicator" ;
22+ ```
23+
2124General / 基础使用
2225
2326``` tsx
Original file line number Diff line number Diff line change 11import ScrollIndicator , { IIndicator } from "./Indicator" ;
22
3- export type {
4- IIndicator
5- } ;
6-
73export default ScrollIndicator ;
You can’t perform that action at this time.
0 commit comments