Fixed UIExplorer in Catalyst shell

This commit is contained in:
Nick Lockwood
2015-05-06 00:11:31 -07:00
parent 54974d6333
commit 88a83084e4
6 changed files with 104 additions and 11 deletions

View File

@@ -12,6 +12,7 @@
#import "RCTBridge.h"
#import "RCTConvert.h"
#import "RCTEventDispatcher.h"
#import "RCTUtils.h"
@implementation RCTSettingsManager
{
@@ -53,13 +54,15 @@ RCT_EXPORT_MODULE()
return;
}
[_bridge.eventDispatcher sendDeviceEventWithName:@"settingsUpdated" body:[_defaults dictionaryRepresentation]];
[_bridge.eventDispatcher
sendDeviceEventWithName:@"settingsUpdated"
body:RCTJSONClean([_defaults dictionaryRepresentation])];
}
- (NSDictionary *)constantsToExport
{
return @{
@"settings": [_defaults dictionaryRepresentation]
@"settings": RCTJSONClean([_defaults dictionaryRepresentation])
};
}