Skip to content

Commit eaa402f

Browse files
committed
update Example
1 parent 560aac0 commit eaa402f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Example/App.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ import {
1313
StyleSheet,
1414
Text,
1515
View,
16-
ScrollView,
17-
Button
16+
Button,
1817
} from 'react-native';
1918
import HuaWeiRefreshControl from './HuaWeiRefreshControl'
2019
const instructions = Platform.select({
@@ -23,13 +22,14 @@ const instructions = Platform.select({
2322
android: 'Double tap R on your keyboard to reload,\n' +
2423
'Shake or press menu button for dev menu',
2524
});
26-
25+
import {ScrollView} from 'react-native-mjrefresh'
2726
type Props = {};
2827
export default class App extends Component<Props> {
2928
render() {
3029
return (
3130
<View style={{flex:1}}>
3231
<ScrollView
32+
//contentContainerStyle={{paddingVertical:50}}
3333
style={{flex:1}}
3434
scrollEventThrottle={16}
3535
onScroll={e=>console.log(e.nativeEvent)}

Example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"react": "16.3.1",
1111
"react-native": "0.55.4",
1212
"react-native-indicators": "^0.13.0",
13-
"react-native-mjrefresh": "^0.4.0",
13+
"react-native-mjrefresh": "^0.5.0",
1414
"react-native-vector-icons": "^4.6.0"
1515
},
1616
"devDependencies": {

Example/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4170,9 +4170,9 @@ react-native-indicators@^0.13.0:
41704170
dependencies:
41714171
prop-types "^15.5.10"
41724172

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"
4173+
react-native-mjrefresh@^0.5.0:
4174+
version "0.5.0"
4175+
resolved "https://registry.npmjs.org/react-native-mjrefresh/-/react-native-mjrefresh-0.5.0.tgz#ca7aa26a73eb44118a63394d4f4bb4dda32e1b68"
41764176

41774177
react-native-vector-icons@^4.6.0:
41784178
version "4.6.0"

0 commit comments

Comments
 (0)