Loading.js
982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import React,{ Component } from 'react'
import {View,Text,RefreshControl,Image,ScrollView,Dimensions,TextInput,TouchableOpacity,StatusBar,StyleSheet} from 'react-native'
import { post, get, put, delete as remove } from 'axios'
import AsyncStorage from '@react-native-community/async-storage';
import Loading from '../../assets/loading.svg'
class MainPage extends Component {
state = {
refreshing:false,
}
constructor(props) {
super(props)
}
_onRefresh = () => {
this.setState({refreshing: true});
this.setState({
refreshing:false,
})
}
componentDidMount() {
}
render() {
return (
<View style={{height:"100%",width:"100%",flex:1,justifyContent:"center",alignSelf:"center",backgroundColor:"transparent"}}>
<Loading style={{alignSelf:"center"}}/>
</View>
)
}
}
const style=StyleSheet.create({
})
export default MainPage