File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -227,18 +227,12 @@ -(void)stopObserving {
227
227
228
228
RCT_EXPORT_METHOD (setNetworkLoggingRequestFilterPredicateIOS: (NSString * _Nonnull) callbackID : (BOOL )value ){
229
229
230
- // NSPredicate *requestPredicate = [NSPredicate predicateWithValue:(value) ? YES : NO];
231
-
232
-
233
230
if ([callbackID isKindOfClass: [NSString class ]] && self.requestFilteringCompletionDictionary [callbackID] != nil ) {
234
231
// ⬇️ YES == Request will be saved, NO == will be ignored
235
- ((IBGURLRequestResponseAsyncFilteringCompletedHandler)self.requestFilteringCompletionDictionary [callbackID])(YES );
232
+ ((IBGURLRequestResponseAsyncFilteringCompletedHandler)self.requestFilteringCompletionDictionary [callbackID])(value );
236
233
} else {
237
234
NSLog (@" Not Available Completion" );
238
235
}
239
-
240
-
241
- // [IBGNetworkLogger setNetworkLoggingRequetFilterPredicate:requestPredicate responseFilterPredicate:nil];
242
236
}
243
237
244
238
Original file line number Diff line number Diff line change @@ -112,9 +112,10 @@ export const setRequestFilterExpression = (expression: string) => {
112
112
const predicate = Function ( 'network' , 'return ' + _requestFilterExpression ) ;
113
113
const value = predicate ( networkSnapshot ) ;
114
114
if ( Platform . OS === 'ios' ) {
115
- NativeNetworkLogger . setNetworkLoggingRequestFilterPredicateIOS ( networkSnapshot . id , value ) ;
115
+ // For iOS True == Request will be saved, False == will be ignored
116
+ NativeNetworkLogger . setNetworkLoggingRequestFilterPredicateIOS ( networkSnapshot . id , ! value ) ;
116
117
} else {
117
- // set android request url to null ;
118
+ // For Android Setting the passed data to empty string will ignore the request ;
118
119
if ( value ) {
119
120
NativeNetworkLogger . updateNetworkLogSnapshot ( '' ) ;
120
121
}
You can’t perform that action at this time.
0 commit comments