Skip to content

Fixes TouchableOpacity mandatory props error #1006

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

Merged
merged 2 commits into from
Nov 5, 2020

Conversation

Dor256
Copy link
Contributor

@Dor256 Dor256 commented Oct 27, 2020

Description

TouchableOpacity had RNTouchableOpacity props mandatory, this PR makes it optional

Changelog

Fixes TS errors in TouchableOpacity

@Dor256 Dor256 added the typescript typescript related issue label Oct 27, 2020
@Dor256 Dor256 requested a review from ethanshar October 27, 2020 11:53
@Dor256 Dor256 force-pushed the TS-touchable-opacity-fix branch from 97356f5 to fcc9167 Compare October 27, 2020 11:53
Comment on lines 2 to 6
import {TouchableOpacityProps as RNTouchableOpacityProps} from 'react-native';
import {PureBaseComponent} from '../commons';
import {AlignmentModifiers, FlexModifiers} from '../modifiers';
import {AlignmentModifiers, FlexModifiers} from '../../src/commons/modifiers';
import {ColorValue} from '../style/colors';

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I not mistaken, I think this file should be removed..
not sure why we still have it
We're using the auto generated file

Maybe that's the reason we had issues with the component typings?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be, let me check this locally before we remove it

@Dor256 Dor256 force-pushed the TS-touchable-opacity-fix branch from 83abfef to 1c114f7 Compare November 5, 2020 12:48
@Dor256
Copy link
Contributor Author

Dor256 commented Nov 5, 2020

I deleted the old typings file, I'm not entirely sure yet that it will fix the problem but let's try

@ethanshar ethanshar merged commit aa7077c into master Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript typescript related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants