mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 12:15:37 +08:00
Revert 3770f061c832 for further investigation
Reviewed By: idevelop Differential Revision: D2695659 fb-gh-sync-id: b1ba529c648681faef5d4f07273722764722fbe1
This commit is contained in:
committed by
facebook-github-bot-7
parent
060664fd3d
commit
638fd11c5c
@@ -435,24 +435,6 @@ RCT_EXPORT_METHOD(clear:(RCTResponseSenderBlock)callback)
|
||||
callback(@[RCTNullIfNil(error)]);
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(clearPrefix:(NSString *)prefix callack:(RCTResponseSenderBlock)callback)
|
||||
{
|
||||
NSDictionary *errorOut = [self _ensureSetup];
|
||||
if (errorOut) {
|
||||
callback(@[errorOut]);
|
||||
return;
|
||||
}
|
||||
|
||||
NSMutableArray<NSString *> *keys = [NSMutableArray array];
|
||||
for (NSString *key in _manifest.allKeys) {
|
||||
if ([key hasPrefix:prefix]) {
|
||||
[keys addObject:key];
|
||||
}
|
||||
}
|
||||
|
||||
[self multiRemove:keys callback:callback];
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(getAllKeys:(RCTResponseSenderBlock)callback)
|
||||
{
|
||||
NSDictionary *errorOut = [self _ensureSetup];
|
||||
|
||||
Reference in New Issue
Block a user