Skip to content

Commit

Permalink
feat(react): modify refresh-wrapper refreshFooterCompleted
Browse files Browse the repository at this point in the history
  • Loading branch information
zealotchen0 committed Jul 30, 2024
1 parent 4c6bce3 commit 7a07b5a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/hippy-react/src/components/refresh-wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,9 @@ export interface RefreshWrapperProps {
*/
export class RefreshWrapper extends React.Component<RefreshWrapperProps, {}> {
private instance: Element | Fiber | HTMLDivElement | null = null;
private refreshComplected: () => void;
private refreshFooterComplected: () => void;

public constructor(props: RefreshWrapperProps) {
super(props);
this.refreshComplected = this.refreshCompleted.bind(this);
this.refreshFooterComplected = this.refreshFooterCompleted.bind(this);
}

/**
Expand Down Expand Up @@ -76,7 +72,7 @@ export class RefreshWrapper extends React.Component<RefreshWrapperProps, {}> {
* Call native that data is refreshed. (For Footer)
*/
public refreshFooterCompleted() {
callUIFunction(this.instance as Element, 'refreshFooterComplected', null);
callUIFunction(this.instance as Element, 'refreshFooterCompleted', null);
}

/**
Expand Down

0 comments on commit 7a07b5a

Please sign in to comment.