Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PressableWithoutFocus followup - change style propType to be in line with GenericPressable type #22539

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/Pressable/PressableWithoutFocus.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import _ from 'underscore';
import PropTypes from 'prop-types';
import GenericPressable from './GenericPressable';
import genericPressablePropTypes from './GenericPressable/PropTypes';
import StylePropType from '../../styles/stylePropTypes';

const propTypes = {
/** Element that should be clickable */
Expand All @@ -15,8 +16,7 @@ const propTypes = {
onLongPress: PropTypes.func,

/** Styles that should be passed to touchable container */
// eslint-disable-next-line react/forbid-prop-types
style: PropTypes.arrayOf(PropTypes.object),
style: StylePropType,

/** Proptypes of pressable component used for implementation */
...genericPressablePropTypes.pressablePropTypes,
Expand Down