File tree Expand file tree Collapse file tree 3 files changed +17
-15
lines changed Expand file tree Collapse file tree 3 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -28,18 +28,21 @@ type Props = {};
28
28
export default class App extends Component < Props > {
29
29
render ( ) {
30
30
return (
31
+ < View style = { { flex :1 } } >
31
32
< ScrollView
32
- refreshControl = {
33
- < HuaWeiRefreshControl
34
- ref = { ref => this . _hw = ref }
35
- onRefresh = { ( ) => {
33
+ style = { { flex :1 } }
34
+ scrollEventThrottle = { 16 }
35
+ onScroll = { e => console . log ( e . nativeEvent ) }
36
+ refreshControl = { < HuaWeiRefreshControl
37
+ ref = { ref => this . _hw = ref }
38
+ onRefresh = { ( ) => {
36
39
setTimeout ( ( ) => {
37
- this . _hw . finishRefresh ( ) ;
40
+ this . _hw . finishRefresh ( ) ;
38
41
} , 1000 )
39
- } }
40
- />
41
- }
42
+ } }
43
+ /> }
42
44
>
45
+
43
46
< View style = { styles . container } >
44
47
< Text style = { styles . welcome } >
45
48
Welcome to React Native!
@@ -55,16 +58,15 @@ export default class App extends Component<Props> {
55
58
} } />
56
59
</ View >
57
60
</ ScrollView >
61
+ </ View >
58
62
) ;
59
63
}
60
64
}
61
65
62
66
const styles = StyleSheet . create ( {
63
67
container : {
64
- flex : 1 ,
65
- justifyContent : 'center' ,
66
- alignItems : 'center' ,
67
68
backgroundColor : '#F5FCFF' ,
69
+ height :1000
68
70
} ,
69
71
welcome : {
70
72
fontSize : 20 ,
Original file line number Diff line number Diff line change 10
10
"react" : " 16.3.1" ,
11
11
"react-native" : " 0.55.4" ,
12
12
"react-native-indicators" : " ^0.13.0" ,
13
- "react-native-mjrefresh" : " ^0.2 .0" ,
13
+ "react-native-mjrefresh" : " ^0.4 .0" ,
14
14
"react-native-vector-icons" : " ^4.6.0"
15
15
},
16
16
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -4170,9 +4170,9 @@ react-native-indicators@^0.13.0:
4170
4170
dependencies :
4171
4171
prop-types "^15.5.10"
4172
4172
4173
- react-native-mjrefresh@^0.2 .0 :
4174
- version "0.2 .0"
4175
- resolved "https://registry.npmjs.org/react-native-mjrefresh/-/react-native-mjrefresh-0.2 .0.tgz#4912c6f8a9d5dc68ec391ec9a8c1480f741a1c25 "
4173
+ react-native-mjrefresh@^0.4 .0 :
4174
+ version "0.4 .0"
4175
+ resolved "https://registry.npmjs.org/react-native-mjrefresh/-/react-native-mjrefresh-0.4 .0.tgz#181cbe0a8f6889d0e3aa77082dc19d16d3eff8c6 "
4176
4176
4177
4177
react-native-vector-icons@^4.6.0 :
4178
4178
version "4.6.0"
You can’t perform that action at this time.
0 commit comments