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.

MascotIntroWelcome.tsx 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * Copyright (c) 2019 - 2020 Arnaud Vergnet.
  3. *
  4. * This file is part of Campus INSAT.
  5. *
  6. * Campus INSAT is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * Campus INSAT is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with Campus INSAT. If not, see <https://www.gnu.org/licenses/>.
  18. */
  19. import * as React from 'react';
  20. import { StyleSheet, View } from 'react-native';
  21. import * as Animatable from 'react-native-animatable';
  22. import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
  23. import GENERAL_STYLES from '../../constants/Styles';
  24. import Mascot, { MASCOT_STYLE } from '../Mascot/Mascot';
  25. const styles = StyleSheet.create({
  26. mascot: {
  27. ...GENERAL_STYLES.center,
  28. width: '80%',
  29. },
  30. text: {
  31. color: '#fff',
  32. textAlign: 'center',
  33. fontSize: 25,
  34. },
  35. container: {
  36. position: 'absolute',
  37. bottom: 30,
  38. right: '20%',
  39. width: 50,
  40. height: 50,
  41. },
  42. icon: {
  43. ...GENERAL_STYLES.center,
  44. transform: [{ rotateZ: '70deg' }],
  45. },
  46. });
  47. function MascotIntroWelcome() {
  48. return (
  49. <View style={GENERAL_STYLES.flex}>
  50. <Mascot
  51. style={styles.mascot}
  52. emotion={MASCOT_STYLE.NORMAL}
  53. animated
  54. entryAnimation={{
  55. animation: 'bounceIn',
  56. duration: 2000,
  57. }}
  58. />
  59. <Animatable.Text
  60. useNativeDriver
  61. animation="fadeInUp"
  62. duration={500}
  63. style={styles.text}
  64. >
  65. PABLO
  66. </Animatable.Text>
  67. <Animatable.View
  68. useNativeDriver
  69. animation="fadeInUp"
  70. duration={500}
  71. delay={200}
  72. style={styles.container}
  73. >
  74. <MaterialCommunityIcons
  75. style={styles.icon}
  76. name="undo"
  77. color="#fff"
  78. size={40}
  79. />
  80. </Animatable.View>
  81. </View>
  82. );
  83. }
  84. export default MascotIntroWelcome;