Skip to content

Commit

Permalink
Silence all Lean Core warnings in Prelude.js
Browse files Browse the repository at this point in the history
Summary:
See https://fb.workplace.com/permalink.php?story_fbid=2337018256625463&id=100009037038038&substory_index=58 for motivation.

I opted for using a substring that is unlikely to come up in warnings in product code but is shared across all lean core warnings. I think this is good enough and won't require updates every time we deprecate a new module.

Reviewed By: yungsters

Differential Revision: D16073431

fbshipit-source-id: 136b9e8ab53c85d2de5ed7844780f5d082087a7d
  • Loading branch information
cpojer authored and facebook-github-bot committed Jul 1, 2019
1 parent d3f9f88 commit e7371b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/react-native/react-native-implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
get ART() {
warnOnce(
'art-moved',
'React Native Art has been extracted from react-native core and will be removed in a future release. ' +
'React Native ART has been extracted from react-native core and will be removed in a future release. ' +
"It can now be installed and imported from '@react-native-community/art' instead of 'react-native'. " +
'See https://github.com/react-native-community/art',
);
Expand Down Expand Up @@ -174,7 +174,7 @@ module.exports = {
get AsyncStorage() {
warnOnce(
'async-storage-moved',
'Async Storage has been extracted from react-native core and will be removed in a future release. ' +
'AsyncStorage has been extracted from react-native core and will be removed in a future release. ' +
"It can now be installed and imported from '@react-native-community/async-storage' instead of 'react-native'. " +
'See https://github.com/react-native-community/react-native-async-storage',
);
Expand Down

0 comments on commit e7371b2

Please sign in to comment.