diff --git a/ios/RNNativeListview.m b/ios/RNNativeListview.m index 772281a..1d8345c 100644 --- a/ios/RNNativeListview.m +++ b/ios/RNNativeListview.m @@ -56,6 +56,10 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge { return self; } +- (void)dealloc { + [self removeObserver:self forKeyPath:@"self.numRows"]; +} + -(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { [self.tableView reloadData]; } diff --git a/package.json b/package.json index 323a01b..881e81e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-native-listview", - "version": "1.2.2", + "version": "1.2.3", "description": "High-performance native iOS/Android ListView component for React Native", "keywords": [ "react-native"