Skip to content

TS/fix carousel-related typing errors #856

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 3 commits into from
Jul 19, 2020
Merged

Conversation

VernonHawk
Copy link
Contributor

@VernonHawk VernonHawk commented Jul 16, 2020

  • 'limitShownPages' does not exist in type 'PageControlProps'
  • 'key' does not exist in type 'PageControlProps'
  • Property 'pageControlPositions' does not exist on type 'typeof Carousel'

This change is Reviewable

@VernonHawk VernonHawk requested a review from ethanshar July 16, 2020 13:43
@VernonHawk VernonHawk self-assigned this Jul 16, 2020
@@ -3,7 +3,8 @@ import {GestureResponderEvent, StyleProp, ViewStyle} from 'react-native';
import {BaseComponent} from '../commons';
import {ColorValue} from '../style/colors';

export interface PageControlProps {
export interface PageControlProps extends JSX.IntrinsicAttributes {
limitShownPages: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe this should be an optional prop

Copy link
Contributor Author

@VernonHawk VernonHawk Jul 19, 2020

Choose a reason for hiding this comment

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

Hm, I didn't notice that all of them were optional, sorry, fixed

@VernonHawk VernonHawk requested a review from ethanshar July 19, 2020 08:29
@ethanshar ethanshar merged commit 6355505 into master Jul 19, 2020
@ethanshar ethanshar deleted the ts/carousel-typings branch July 26, 2021 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants