/**
* Description:
*
* Author: Bruce.Lu
* Version: 1.0
* Created on 2017/2/23.
*/
import React from 'react';
import ReactNative from 'react-native';
let {
requireNativeComponent,
View
} = ReactNative;
let YH_PtrRefreshView = requireNativeComponent('YH_PtrRefresh', null);
export default class YH_PtrRefresh extends React.Component {
static propTypes = {
...View.propTypes // 包含默认的View的属性
};
constructor(props) {
super(props);
}
render() {
return <YH_PtrRefreshView {...this.props} data={this.props.data} />;
}
}
... ...
... ... @@ -8,13 +8,6 @@
import React from 'react';
import ReactNative from 'react-native';
let {
requireNativeComponent,
View
} = ReactNative;
let YH_PtrRefreshView = requireNativeComponent('YH_PtrRefresh', null);
export default class YH_PtrRefresh extends React.Component {
static propTypes = {
... ... @@ -26,6 +19,6 @@ export default class YH_PtrRefresh extends React.Component {
}
render() {
return <YH_PtrRefreshView {...this.props} data={this.props.data} />;
return null;
}
}
... ...
... ... @@ -119,7 +119,6 @@ let styles = StyleSheet.create({
marginLeft: 15,
marginTop: 10,
marginBottom: 10,
backgroundColor: 'transparent',
width: 46,
height: 60,
backgroundColor: 'white'
... ...