12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- // @flow
-
- import * as React from 'react';
- import {StyleSheet, View} from 'react-native';
- import Mascot, {MASCOT_STYLE} from '../Mascot/Mascot';
-
- const styles = StyleSheet.create({
- center: {
- marginTop: 'auto',
- marginBottom: 'auto',
- marginRight: 'auto',
- marginLeft: 'auto',
- },
- });
-
- class MascotIntroEnd extends React.Component<null> {
- shouldComponentUpdate(): boolean {
- return false;
- }
-
- render(): React.Node {
- return (
- <View style={{flex: 1}}>
- <Mascot
- style={{
- ...styles.center,
- width: '100%',
- }}
- emotion={MASCOT_STYLE.COOL}
- animated
- entryAnimation={{
- animation: 'slideInDown',
- duration: 2000,
- }}
- loopAnimation={{
- animation: 'pulse',
- duration: 2000,
- iterationCount: 'infinite',
- }}
- />
- </View>
- );
- }
- }
-
- export default MascotIntroEnd;
|