[IMPROVE] - remove unused PropTypes

This commit is contained in:
AlexAlexandre 2021-07-29 15:53:36 -03:00
parent 91e6566542
commit 3e74f59ca3
5 changed files with 5 additions and 9 deletions

View File

@ -1,6 +1,5 @@
import React from 'react';
import { Text, View } from 'react-native';
import PropTypes from 'prop-types';
import Touch from '../../utils/touch';
import Avatar from '../../containers/Avatar';

View File

@ -1,6 +1,5 @@
import React from 'react';
import { StyleSheet, View } from 'react-native';
import PropTypes from 'prop-types';
import { PanGestureHandler, State, PinchGestureHandler } from 'react-native-gesture-handler';
import Animated, { Easing } from 'react-native-reanimated';
import { ImageComponent } from './ImageComponent';
@ -256,10 +255,11 @@ function bouncy(
const WIDTH = 300;
const HEIGHT = 300;
class Image extends React.PureComponent {
static propTypes = {
imageComponentType: PropTypes.string
}
interface IImageProps {
imageComponentType: string
}
class Image extends React.PureComponent<IImageProps, any> {
render() {
const { imageComponentType }: any = this.props;

View File

@ -1,5 +1,4 @@
import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import styles from './styles';

View File

@ -1,5 +1,4 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Animated } from 'react-native';
import {
LongPressGestureHandler, PanGestureHandler, State

View File

@ -1,5 +1,4 @@
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import I18n from '../../i18n';