mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 02:04:55 +00:00
Fix infinite recursion in RCTSettingsManager init
Reviewed By: fromcelticpark Differential Revision: D5592555 fbshipit-source-id: edf5cdd91f057879edb22b8883902fec99b2d2cc
This commit is contained in:
parent
d268c1f731
commit
b78b8cc9e7
@ -13,6 +13,6 @@
|
|||||||
|
|
||||||
@interface RCTSettingsManager : NSObject <RCTBridgeModule>
|
@interface RCTSettingsManager : NSObject <RCTBridgeModule>
|
||||||
|
|
||||||
- (instancetype)initWithUserDefaults:(NSUserDefaults *)defaults;
|
- (instancetype)initWithUserDefaults:(NSUserDefaults *)defaults NS_DESIGNATED_INITIALIZER;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -36,7 +36,7 @@ RCT_EXPORT_MODULE()
|
|||||||
|
|
||||||
- (instancetype)initWithUserDefaults:(NSUserDefaults *)defaults
|
- (instancetype)initWithUserDefaults:(NSUserDefaults *)defaults
|
||||||
{
|
{
|
||||||
if ((self = [self init])) {
|
if ((self = [super init])) {
|
||||||
_defaults = defaults;
|
_defaults = defaults;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user