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.

MascotIntroEnd.js 960B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // @flow
  2. import * as React from 'react';
  3. import {StyleSheet, View} from 'react-native';
  4. import Mascot, {MASCOT_STYLE} from '../Mascot/Mascot';
  5. const styles = StyleSheet.create({
  6. center: {
  7. marginTop: 'auto',
  8. marginBottom: 'auto',
  9. marginRight: 'auto',
  10. marginLeft: 'auto',
  11. },
  12. });
  13. class MascotIntroEnd extends React.Component<null> {
  14. shouldComponentUpdate(): boolean {
  15. return false;
  16. }
  17. render(): React.Node {
  18. return (
  19. <View style={{flex: 1}}>
  20. <Mascot
  21. style={{
  22. ...styles.center,
  23. width: '80%',
  24. }}
  25. emotion={MASCOT_STYLE.COOL}
  26. animated
  27. entryAnimation={{
  28. animation: 'slideInDown',
  29. duration: 2000,
  30. }}
  31. loopAnimation={{
  32. animation: 'pulse',
  33. duration: 2000,
  34. iterationCount: 'infinite',
  35. }}
  36. />
  37. </View>
  38. );
  39. }
  40. }
  41. export default MascotIntroEnd;