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

[TypeScript] Add ScreenProps type and export it #5726

Merged
merged 1 commit into from
Mar 22, 2019
Merged

[TypeScript] Add ScreenProps type and export it #5726

merged 1 commit into from
Mar 22, 2019

Conversation

itsjgf
Copy link

@itsjgf itsjgf commented Mar 22, 2019

Motivation

The screenProps prop doesn't have a clear type (sometimes it's typed with object, other times with any and others with { [key: string]: any } ).

This PR creates and exports a custom ScreenProps type for better consistency.

@itsjgf itsjgf changed the title chore(typescript): Add ScreenProps type and export it [TypeScript] Add ScreenProps type and export it Mar 22, 2019
@brentvatne
Copy link
Member

great! thank you

@brentvatne brentvatne merged commit ec97b61 into react-navigation:master Mar 22, 2019
@brentvatne
Copy link
Member

@itsjgf - are you interested in becoming a collaborator on this org to continue helping with typescript types? it'd be great to have you

@itsjgf
Copy link
Author

itsjgf commented Mar 23, 2019

@brentvatne sure! I will be happy to help =).

@brentvatne
Copy link
Member

@itsjgf - invited you to the repo :) https://github.com/react-navigation/react-navigation/invitations

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