Skip to content

Commit

Permalink
Use predefined style prop types
Browse files Browse the repository at this point in the history
  • Loading branch information
zukilover committed Sep 18, 2023
1 parent a172535 commit a0e5677
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/SpacerView.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import Animated, {useAnimatedStyle, useSharedValue, withTiming} from 'react-native-reanimated';
import PropTypes from 'prop-types';
import * as StyleUtils from '../styles/StyleUtils';
import stylePropTypes from '../styles/stylePropTypes';
import CONST from '../CONST';

const propTypes = {
Expand All @@ -15,7 +16,7 @@ const propTypes = {
* @default []
*/
// eslint-disable-next-line react/forbid-prop-types
style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
style: stylePropTypes,
};

const defaultProps = {
Expand Down

0 comments on commit a0e5677

Please sign in to comment.