Skip to content

Commit

Permalink
Update type for AnimatedLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
piaskowyk committed Jun 17, 2021
1 parent e481c93 commit d8a02a2
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/reanimated2/layoutReanimation/AnimatedRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,9 @@ if (Platform.OS === 'web' && !requireNativeComponent) {
'REALayoutView'
) as unknown) as React.Component;
}
export interface REALayoutViewComponent {
props: {
collapsable?: boolean;
};
}

export class AnimatedLayout extends React.Component<
Record<string, unknown>,
Record<string, unknown>
> {
render(): REALayoutViewComponent {
export class AnimatedLayout extends React.Component {
render(): React.ReactElement {
return <REALayoutView collapsable={false} {...this.props} />;
}
}
Expand Down

0 comments on commit d8a02a2

Please sign in to comment.