Skip to content

Commit

Permalink
fix(ios): fix footer pull method name
Browse files Browse the repository at this point in the history
  • Loading branch information
ozonelmy authored and xuqingkuang committed Sep 18, 2020
1 parent 8a68d44 commit bef9a19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ios/sdk/component/footerrefresh/HippyFooterRefresh.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ - (void)setStatus:(HippyRefreshStatus)status {
[UIView animateWithDuration:.2f
animations:^{
UIEdgeInsets insets = self.scrollView.contentInset;
self.scrollView.contentInset = UIEdgeInsetsMake(insets.top, insets.left, -height, insets.right);
self.scrollView.contentInset = UIEdgeInsetsMake(insets.top, insets.left, height, insets.right);
}
completion:^(BOOL finished) {
if (self.onFooterReleased) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ @implementation HippyFooterRefreshManager
HIPPY_EXPORT_VIEW_PROPERTY(onFooterReleased, HippyDirectEventBlock)
HIPPY_EXPORT_VIEW_PROPERTY(onFooterPulling, HippyDirectEventBlock)

HIPPY_EXPORT_METHOD(pullFooterFinished : (nonnull NSNumber *)reactTag) {
HIPPY_EXPORT_METHOD(collapsePullFooter : (nonnull NSNumber *)reactTag) {
[self.bridge.uiManager addUIBlock:^(HippyUIManager *uiManager, NSDictionary<NSNumber *, __kindof UIView *> *viewRegistry) {
HippyRefresh *refreshView = viewRegistry[reactTag];
[refreshView refreshFinish];
Expand Down

0 comments on commit bef9a19

Please sign in to comment.