UNPKG

react-native-1app

Version:

48 lines (42 loc) 949 B
'use strict'; import React, { Component } from 'react'; import { StyleSheet, View,Platform, ActivityIndicator, } from 'react-native'; export default class Progresso extends Component { render() { let {style}=this.props; var size = 0; if(Platform.OS !== 'android' ){ size = style.height?style.height:50; if(size>50){ size = "large"; }else{ size = "small"; } }else{ size = style.height?style.height:50; } return ( <View style={{ backgroundColor:"rgba(0,0,0,0)", "flexDirection": "column", "alignItems": "center", "justifyContent": "center", minHeight:30 , minWidth:30 }} > <ActivityIndicator color={style.color} style={[ { backgroundColor:"rgba(0,0,0,0)"}]} size={size} /> </View> ); } } Progresso.defaultProps={ style:{} }