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.

MascotIntroWelcome.js 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // @flow
  2. import * as React from 'react';
  3. import {StyleSheet, View} from 'react-native';
  4. import * as Animatable from 'react-native-animatable';
  5. import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
  6. import Mascot, {MASCOT_STYLE} from '../Mascot/Mascot';
  7. const styles = StyleSheet.create({
  8. center: {
  9. marginTop: 'auto',
  10. marginBottom: 'auto',
  11. marginRight: 'auto',
  12. marginLeft: 'auto',
  13. },
  14. });
  15. class MascotIntroWelcome extends React.Component<null> {
  16. shouldComponentUpdate(): boolean {
  17. return false;
  18. }
  19. render(): React.Node {
  20. return (
  21. <View style={{flex: 1}}>
  22. <Mascot
  23. style={{
  24. ...styles.center,
  25. width: '80%',
  26. }}
  27. emotion={MASCOT_STYLE.NORMAL}
  28. animated
  29. entryAnimation={{
  30. animation: 'bounceIn',
  31. duration: 2000,
  32. }}
  33. />
  34. <Animatable.Text
  35. useNativeDriver
  36. animation="fadeInUp"
  37. duration={500}
  38. style={{
  39. color: '#fff',
  40. textAlign: 'center',
  41. fontSize: 25,
  42. }}>
  43. PABLO
  44. </Animatable.Text>
  45. <Animatable.View
  46. useNativeDriver
  47. animation="fadeInUp"
  48. duration={500}
  49. delay={200}
  50. style={{
  51. position: 'absolute',
  52. bottom: 30,
  53. right: '20%',
  54. width: 50,
  55. height: 50,
  56. }}>
  57. <MaterialCommunityIcons
  58. style={{
  59. ...styles.center,
  60. transform: [{rotateZ: '70deg'}],
  61. }}
  62. name="undo"
  63. color="#fff"
  64. size={40}
  65. />
  66. </Animatable.View>
  67. </View>
  68. );
  69. }
  70. }
  71. export default MascotIntroWelcome;