Skip to content

Commit c968ff9

Browse files
Remove YellowBox usage
(it's always present in 0.65+)
1 parent 932956d commit c968ff9

File tree

2 files changed

+3
-94
lines changed

2 files changed

+3
-94
lines changed
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
/* eslint-disable deprecation/deprecation */
2-
import { LogBox, YellowBox } from 'react-native';
1+
import { LogBox } from 'react-native';
32

43
/**
5-
* This is a workaround for now using fetch on RN, this is a known issue in react-native and only generates a warning
6-
* YellowBox deprecated and replaced with with LogBox in RN 0.63
4+
* This is a workaround for using fetch on RN, this is a known issue in react-native and only generates a warning.
75
*/
86
export function ignoreRequireCycleLogs(): void {
9-
if (LogBox) {
10-
LogBox.ignoreLogs(['Require cycle:']);
11-
} else {
12-
YellowBox.ignoreWarnings(['Require cycle:']);
13-
}
7+
LogBox.ignoreLogs(['Require cycle:']);
148
}

test/client.rn.before.0.63.test.ts

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)