Skip to content

Commit

Permalink
fix(ios): sticky list cell not showing after reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwcg committed Dec 6, 2023
1 parent 49d8a58 commit b3e73e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
5 changes: 0 additions & 5 deletions renderer/native/ios/renderer/HippyUIManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,6 @@ - (HippyComponentMap *)viewRegistry {
_viewRegistry = [[HippyComponentMap alloc] init];
}
return _viewRegistry;
}

- (__kindof UIView *)viewFromRenderViewTag:(NSNumber *)componentTag
onRootTag:(NSNumber *)rootTag {
return [self viewForHippyTag:componentTag onRootTag:rootTag];
}

- (UIView *)viewForHippyTag:(NSNumber *)hippyTag onRootTag:(NSNumber *)rootTag {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#import "UIView+Render.h"

static NSString *const kCellIdentifier = @"HippyListCellIdentifier";
static NSString *const kSupplementaryIdentifier = @"SupplementaryIdentifier";
static NSString *const kSupplementaryIdentifier = @"HippySupplementaryIdentifier";
static NSString *const kListViewItem = @"ListViewItem";

@interface NativeRenderBaseListView () <NativeRenderRefreshDelegate> {
Expand Down Expand Up @@ -237,10 +237,7 @@ - (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView
forIndexPath:indexPath];
HippyShadowView *headerRenderObject = [self.dataSource headerForSection:section];
if (headerRenderObject && [headerRenderObject isKindOfClass:[HippyShadowView class]]) {
UIView *headerView = [self.renderImpl viewForHippyTag:headerRenderObject.hippyTag onRootTag:headerRenderObject.rootTag];
if (!headerView) {
headerView = [self.renderImpl createViewRecursivelyFromRenderObject:headerRenderObject];
}
UIView *headerView = [self.renderImpl createViewRecursivelyFromRenderObject:headerRenderObject];
CGRect frame = headerView.frame;
frame.origin = CGPointZero;
headerView.frame = frame;
Expand Down

0 comments on commit b3e73e5

Please sign in to comment.