fix(hippy-react): fix pullHeader and pullFooter (#420)

add parameter in fucntions expandPullFooter,collapsePullFooter,expandPullFooter and collapsePullFooter
This commit is contained in:
ilikethese
2020-11-27 20:16:37 +08:00
committed by GitHub
parent c1317348ba
commit abfc574019
2 changed files with 4 additions and 4 deletions
@@ -37,14 +37,14 @@ class PullFooter extends React.Component<PullFooterProps, {}> {
* Expand the PullView and display the content
*/
expandPullFooter() {
callUIFunction(this.instance, 'expandPullFooter');
callUIFunction(this.instance, 'expandPullFooter', []);
}
/**
* Collapse the PullView and hide the content
*/
collapsePullFooter() {
callUIFunction(this.instance, 'collapsePullFooter');
callUIFunction(this.instance, 'collapsePullFooter', []);
}
render() {
@@ -25,14 +25,14 @@ class PullHeader extends React.Component<PullHeaderProps, {}> {
* Expand the PullView and display the content
*/
expandPullHeader() {
callUIFunction(this.instance, 'expandPullHeader');
callUIFunction(this.instance, 'expandPullHeader', []);
}
/**
* Collapse the PullView and hide the content
*/
collapsePullHeader() {
callUIFunction(this.instance, 'collapsePullHeader');
callUIFunction(this.instance, 'collapsePullHeader', []);
}
render() {