diff --git a/Example/.flowconfig b/Example/.flowconfig index 7d5e2d3..0b611f0 100644 --- a/Example/.flowconfig +++ b/Example/.flowconfig @@ -51,4 +51,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError [version] -^0.67.0 +^0.63.0 diff --git a/Example/.gitignore b/Example/.gitignore index 5d64756..0826423 100644 --- a/Example/.gitignore +++ b/Example/.gitignore @@ -51,6 +51,3 @@ buck-out/ */fastlane/report.xml */fastlane/Preview.html */fastlane/screenshots - -# Bundle artifact -*.jsbundle diff --git a/Example/93K58PICGPs_1024.jpg b/Example/93K58PICGPs_1024.jpg deleted file mode 100644 index 8c7fbac..0000000 Binary files a/Example/93K58PICGPs_1024.jpg and /dev/null differ diff --git a/Example/App.js b/Example/App.js index 19c5e5b..70b8a05 100644 --- a/Example/App.js +++ b/Example/App.js @@ -9,37 +9,25 @@ import { Platform, StyleSheet, Text, - View, - Button, + View } from 'react-native'; -import HuaWeiRefreshControl from './HuaWeiRefreshControl' + const instructions = Platform.select({ ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu', android: 'Double tap R on your keyboard to reload,\n' + 'Shake or press menu button for dev menu', }); -import {ScrollView} from 'react-native-mjrefresh' +import HuaWeiRefreshControl from './HuaWeiRefreshControl' +import {ScrollView} from 'react-native-mjrefresh-lower' type Props = {}; export default class App extends Component { render() { return ( - console.log(e.nativeEvent)} - refreshControl={this._hw = ref} - onRefresh={()=>{ - setTimeout(()=>{ - this._hw.finishRefresh(); - },1000) - }} - />} - > - + } + style={{flex:1}}> Welcome to React Native! @@ -50,11 +38,8 @@ export default class App extends Component { {instructions} -