Skip to content

Commit

Permalink
Remove YellowBox usage
Browse files Browse the repository at this point in the history
(it's always present in 0.65+)
  • Loading branch information
krystofwoldrich committed Feb 20, 2023
1 parent 932956d commit c968ff9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 94 deletions.
12 changes: 3 additions & 9 deletions src/js/utils/ignorerequirecyclelogs.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
/* eslint-disable deprecation/deprecation */
import { LogBox, YellowBox } from 'react-native';
import { LogBox } from 'react-native';

/**
* This is a workaround for now using fetch on RN, this is a known issue in react-native and only generates a warning
* YellowBox deprecated and replaced with with LogBox in RN 0.63
* This is a workaround for using fetch on RN, this is a known issue in react-native and only generates a warning.
*/
export function ignoreRequireCycleLogs(): void {
if (LogBox) {
LogBox.ignoreLogs(['Require cycle:']);
} else {
YellowBox.ignoreWarnings(['Require cycle:']);
}
LogBox.ignoreLogs(['Require cycle:']);
}
85 changes: 0 additions & 85 deletions test/client.rn.before.0.63.test.ts

This file was deleted.

0 comments on commit c968ff9

Please sign in to comment.