Skip to content

Fix/drawer types source #1069

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 4 commits into from
Dec 13, 2020
Merged

Fix/drawer types source #1069

merged 4 commits into from
Dec 13, 2020

Conversation

Inbal-Tish
Copy link
Collaborator

Description

Removing Drawer's manual typings and fixing generated types.
Adding 'customValue' prop to pass along from user to component and back on component's events.
Declaring props.

Changelog

Drawer - Removing Drawer's manual typings and fixing generated types. Adding 'customValue' prop to pass along from user to component and back on component's events. Declaring missing props.

@@ -35,6 +35,7 @@ export {default as TouchableOpacity, TouchableOpacityProps} from './components/t
export {default as Button, ButtonPropTypes, ButtonProps} from './components/button';
export {default as Checkbox, CheckboxPropTypes, CheckboxProps} from './components/checkbox';
export {default as Chip, ChipPropTypes, ChipProps} from './components/chip';
export {default as Drawer, DrawerProps, ItemProps} from './components/drawer';
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can't export a typing called ItemProps it's too vague.
Better rename it to DrawerItemProps

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@@ -67,7 +68,6 @@ export {default as Carousel, CarouselProps} from './components/carousel';
export {
ActionSheet,
ConnectionStatusBar,
Drawer,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make sure to update the exports also in src/index.ts file

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@ethanshar ethanshar merged commit 1e6486f into master Dec 13, 2020
@Inbal-Tish Inbal-Tish deleted the fix/Drawer_types_source branch December 13, 2020 10:06
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