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

added props #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ShrutiSharma01
Copy link

No description provided.

@samagragupta
Copy link
Contributor

LGTM

@@ -31,13 +31,13 @@ export abstract class BaseAnimationWrapper<P extends AnimationWrapperProps> exte
const content = this.props.children;
if (this.props.animationConfig?.triggerType === AnimationTriggerType.ON_CLICK) {
return (
<TouchableWithoutFeedback onPress={this._onPress}>
<TouchableWithoutFeedback onPress={this._onPress} style={this.props?.animationWrapperStyles}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add a description of this prop, and what do you intend to do with this?

Also, you'll need to update the documentation if you're adding new props to the BaseAnimationWrapper

@@ -23,6 +23,7 @@ type AnimationWrapperProps = {
animationConfig: BaseAnimationConfig;
onAnimationFinish?: (animationConfig?: BaseAnimationConfig) => void;
onAnimationStart?: (animationConfig?: BaseAnimationConfig) => void;
animationWrapperStyles?:object;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you upcast the type from object?

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.

3 participants