-
-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
3 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:']); | ||
} |
This file was deleted.
Oops, something went wrong.