Fix propTypes warnings (#5285)

This commit is contained in:
Elias Nahum
2021-04-06 21:18:31 -04:00
committed by GitHub
parent fca7c79183
commit c6953bef47
32 changed files with 72 additions and 144 deletions

View File

@@ -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 = {