Application Android et IOS pour l'amicale des élèves https://play.google.com/store/apps/details?id=fr.amicaleinsat.application
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EmptyWebSectionListItem.js 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import * as React from 'react';
  2. import {ActivityIndicator, Subheading, withTheme} from 'react-native-paper';
  3. import {View} from "react-native";
  4. import {MaterialCommunityIcons} from "@expo/vector-icons";
  5. function EmptyWebSectionListItem(props) {
  6. const { colors } = props.theme;
  7. return (
  8. <View>
  9. <View style={{
  10. justifyContent: 'center',
  11. alignItems: 'center',
  12. width: '100%',
  13. height: 100,
  14. marginBottom: 20
  15. }}>
  16. {props.refreshing ?
  17. <ActivityIndicator
  18. animating={true}
  19. size={'large'}
  20. color={colors.primary}/>
  21. :
  22. <MaterialCommunityIcons
  23. name={props.icon}
  24. size={100}
  25. color={colors.textDisabled}/>}
  26. </View>
  27. <Subheading style={{
  28. textAlign: 'center',
  29. marginRight: 20,
  30. marginLeft: 20,
  31. color: colors.textDisabled
  32. }}>
  33. {props.text}
  34. </Subheading>
  35. </View>
  36. );
  37. }
  38. export default withTheme(EmptyWebSectionListItem);