Skip to content

Commit 3ca5545

Browse files
fix(ios): crash with NSInternalInconsistencyException on iOS (#530)
1 parent fd8d6d6 commit 3ca5545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/ReactNativePageView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ - (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher {
4444
_dismissKeyboard = UIScrollViewKeyboardDismissModeNone;
4545
_coalescingKey = 0;
4646
_eventDispatcher = eventDispatcher;
47-
_cachedControllers = [NSHashTable weakObjectsHashTable];
47+
_cachedControllers = [NSHashTable hashTableWithOptions:NSHashTableStrongMemory];
4848
_overdrag = NO;
4949
_layoutDirection = @"ltr";
5050
_previousBounds = CGRectMake(0, 0, 0, 0);

0 commit comments

Comments
 (0)