Application Android et IOS pour l'amicale des élèves
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.

BasicLoadingScreen.js 925B

12345678910111213141516171819202122232425262728293031323334353637
  1. // @flow
  2. import * as React from 'react';
  3. import {View} from 'react-native';
  4. import {ActivityIndicator, withTheme} from 'react-native-paper';
  5. /**
  6. * Component used to display a header button
  7. *
  8. * @param props Props to pass to the component
  9. * @return {*}
  10. */
  11. function BasicLoadingScreen(props) {
  12. const {colors} = props.theme;
  13. let position = undefined;
  14. if (props.isAbsolute !== undefined && props.isAbsolute)
  15. position = 'absolute';
  16. return (
  17. <View style={{
  18. backgroundColor: colors.background,
  19. position: position,
  20. top: 0,
  21. right: 0,
  22. width: '100%',
  23. height: '100%',
  24. justifyContent: 'center',
  25. }}>
  26. <ActivityIndicator
  27. animating={true}
  28. size={'large'}
  29. color={colors.primary}/>
  30. </View>
  31. );
  32. }
  33. export default withTheme(BasicLoadingScreen);