mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-29 06:06:52 +08:00
fix(hippy-react): fix pullHeader and pullFooter (#420)
add parameter in fucntions expandPullFooter,collapsePullFooter,expandPullFooter and collapsePullFooter
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user