[IMPROVE] - remove unused PropTypes
This commit is contained in:
parent
91e6566542
commit
3e74f59ca3
|
@ -1,6 +1,5 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Text, View } from 'react-native';
|
import { Text, View } from 'react-native';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
|
|
||||||
import Touch from '../../utils/touch';
|
import Touch from '../../utils/touch';
|
||||||
import Avatar from '../../containers/Avatar';
|
import Avatar from '../../containers/Avatar';
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { StyleSheet, View } from 'react-native';
|
import { StyleSheet, View } from 'react-native';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import { PanGestureHandler, State, PinchGestureHandler } from 'react-native-gesture-handler';
|
import { PanGestureHandler, State, PinchGestureHandler } from 'react-native-gesture-handler';
|
||||||
import Animated, { Easing } from 'react-native-reanimated';
|
import Animated, { Easing } from 'react-native-reanimated';
|
||||||
import { ImageComponent } from './ImageComponent';
|
import { ImageComponent } from './ImageComponent';
|
||||||
|
@ -256,10 +255,11 @@ function bouncy(
|
||||||
const WIDTH = 300;
|
const WIDTH = 300;
|
||||||
const HEIGHT = 300;
|
const HEIGHT = 300;
|
||||||
|
|
||||||
class Image extends React.PureComponent {
|
interface IImageProps {
|
||||||
static propTypes = {
|
imageComponentType: string
|
||||||
imageComponentType: PropTypes.string
|
}
|
||||||
}
|
|
||||||
|
class Image extends React.PureComponent<IImageProps, any> {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { imageComponentType }: any = this.props;
|
const { imageComponentType }: any = this.props;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import { View } from 'react-native';
|
import { View } from 'react-native';
|
||||||
|
|
||||||
import styles from './styles';
|
import styles from './styles';
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import { Animated } from 'react-native';
|
import { Animated } from 'react-native';
|
||||||
import {
|
import {
|
||||||
LongPressGestureHandler, PanGestureHandler, State
|
LongPressGestureHandler, PanGestureHandler, State
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import I18n from '../../i18n';
|
import I18n from '../../i18n';
|
||||||
|
|
Loading…
Reference in New Issue