[IMPROVE] - remove unused PropTypes
This commit is contained in:
parent
91e6566542
commit
3e74f59ca3
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { View } from 'react-native';
|
||||
|
||||
import styles from './styles';
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Animated } from 'react-native';
|
||||
import {
|
||||
LongPressGestureHandler, PanGestureHandler, State
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import I18n from '../../i18n';
|
||||
|
|
Loading…
Reference in New Issue