Skip to content

Commit

Permalink
add deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Borowy committed Feb 11, 2019
1 parent 62599fa commit 9967baa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Libraries/react-native/react-native-implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@ module.exports = {
return require('AppState');
},
get AsyncStorage() {
warnOnce(
'async-storage-moved',
'Async Storage 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 for more informations.',
);
return require('AsyncStorage');
},
get BackHandler() {
Expand Down

0 comments on commit 9967baa

Please sign in to comment.