Skip to content

Commit 520df6b

Browse files
committed
update Example
1 parent 11c4f5c commit 520df6b

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Example/93K58PICGPs_1024.jpg

625 KB
Loading

Example/HuaWeiRefreshControl.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import React, {Component} from 'react';
2-
import {StyleSheet, View, Text,Animated,Easing} from 'react-native';
2+
import {StyleSheet, View, Text,Animated,Easing,Dimensions,Image,TouchableWithoutFeedback} from 'react-native';
33
import PropTypes from 'prop-types';
44
import Icon from 'react-native-vector-icons/Ionicons';
55
import MJRefresh from 'react-native-mjrefresh';
66
import {SkypeIndicator} from 'react-native-indicators'
77
const AnimatedIcon = Animated.createAnimatedComponent(Icon);
8+
const {width} = Dimensions.get('window');
89
export default class HuaWeiRefreshControl extends Component {
910
state = {
1011
text: '下拉刷新',
@@ -69,6 +70,18 @@ export default class HuaWeiRefreshControl extends Component {
6970
alignItems: 'center',
7071
justifyContent: 'center',
7172
}}>
73+
<View style={{
74+
position:'absolute',
75+
left:0,right:0,bottom:0,height:width*1436/1024
76+
}}>
77+
<TouchableWithoutFeedback onPress={()=>{
78+
alert('111')
79+
}}>
80+
<Image style={{width,height:width*1436/1024}}
81+
source={require('./93K58PICGPs_1024.jpg')}
82+
/>
83+
</TouchableWithoutFeedback>
84+
</View>
7285
{this.state.refreshing ? <SkypeIndicator style={{flex: 0}} size={24} color={'#2783cf'}/> :
7386
<AnimatedIcon style={{
7487
transform: [{

0 commit comments

Comments
 (0)