From 4d41d7266cf34945778a8b642f3e33774cf0a1a7 Mon Sep 17 00:00:00 2001 From: DevmateDropRctExportMethod Bot Date: Wed, 5 Aug 2026 03:48:31 -0700 Subject: [PATCH] xplat/js/react-native-github/packages/react-native/Libraries/Settings/RCTSettingsManager.mm Summary: ...found). Changelog: [Internal] _____ * Do **NOT** post in the CodemodService Feedback group about this specific diff. * If you have feedback, comment on the diff and use an appropriate diff action. This [diff was created](https://www.internalfb.com/intern/sandcastle/job/18014401344983091/) with [CodemodService](https://www.internalfb.com/codemod_service/CodemodConfigDevmateDropRctExportMethod). Reviewed By: cortinico Differential Revision: D114843845 --- .../react-native/Libraries/Settings/RCTSettingsManager.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react-native/Libraries/Settings/RCTSettingsManager.mm b/packages/react-native/Libraries/Settings/RCTSettingsManager.mm index e9ed3f6f3d45..af0bd521f02e 100644 --- a/packages/react-native/Libraries/Settings/RCTSettingsManager.mm +++ b/packages/react-native/Libraries/Settings/RCTSettingsManager.mm @@ -79,7 +79,7 @@ - (void)userDefaultsDidChange:(NSNotification *)note * Set one or more values in the settings. * TODO: would it be useful to have a callback for when this has completed? */ -RCT_EXPORT_METHOD(setValues : (NSDictionary *)values) +- (void)setValues:(NSDictionary *)values { _ignoringUpdates = YES; [values enumerateKeysAndObjectsUsingBlock:^(NSString *key, id json, BOOL *stop) { @@ -98,8 +98,9 @@ - (void)userDefaultsDidChange:(NSNotification *)note /** * Remove some values from the settings. */ -RCT_EXPORT_METHOD(deleteValues : (NSArray *)keys) +- (void)deleteValues:(NSArray *)keysRaw { + NSArray *keys = [RCTConvert NSStringArray:keysRaw]; _ignoringUpdates = YES; for (NSString *key in keys) { [_defaults removeObjectForKey:key];