forked from Ivasoft/mattermost-mobile
Fix propTypes warnings (#5285)
This commit is contained in:
@@ -12,7 +12,6 @@ import {
|
||||
} from 'react-native';
|
||||
import Clipboard from '@react-native-community/clipboard';
|
||||
|
||||
import CustomPropTypes from '@constants/custom_prop_types';
|
||||
import FormattedText from 'app/components/formatted_text';
|
||||
import TouchableWithFeedback from 'app/components/touchable_with_feedback';
|
||||
import BottomSheet from 'app/utils/bottom_sheet';
|
||||
@@ -29,7 +28,7 @@ export default class MarkdownCodeBlock extends React.PureComponent {
|
||||
theme: PropTypes.object.isRequired,
|
||||
language: PropTypes.string,
|
||||
content: PropTypes.string.isRequired,
|
||||
textStyle: CustomPropTypes.Style,
|
||||
textStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
|
||||
};
|
||||
|
||||
static defaultProps = {
|
||||
|
||||
Reference in New Issue
Block a user