Skip to content

Typescript/stack aggregator #1339

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 10 commits into from
Jun 8, 2021
Merged

Typescript/stack aggregator #1339

merged 10 commits into from
Jun 8, 2021

Conversation

mendyEdri
Copy link
Contributor

Description

Migrate StackAggregator component into typescript.

Changelog

Migrate StackAggregator component into typescript.

@mendyEdri mendyEdri requested a review from Inbal-Tish June 3, 2021 11:26
/**
* A callback for collapse state will change (value is future collapsed state)
*/
onCollapseWillChange: PropTypes.func,
onCollapseWillChange?: (change: boolean) => void;
Copy link
Collaborator

Choose a reason for hiding this comment

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

'changed' instead of 'change' (as 'change' refers to the change itself and not its state)

onCollapseChanged: PropTypes.func,
* A callback for collapse state change (value is collapsed state)
*/
onCollapseChanged?: (change: boolean) => void;
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here

class StackAggregator extends PureComponent<StackAggregatorProps, State> {
static displayName = 'StackAggregator';

animatedScale: any;
Copy link
Collaborator

Choose a reason for hiding this comment

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

why type 'any' and not 'Animated.Value' on all the animated variables?

@Inbal-Tish Inbal-Tish merged commit f0eb00c into master Jun 8, 2021
@mendyEdri mendyEdri deleted the typescript/StackAggregator branch June 10, 2021 07:29
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