Skip to content
Permalink
Browse files

Deprecation warning for AsyncStorage (#23384)

Summary:
Added a deprecation warning for the `Async Storage`,  module as part of #23313.

[General] [Deprecated] - Async Storage [was moved to community repo](https://github.com/react-native-community/react-native-async-storage)
Pull Request resolved: #23384

Differential Revision: D14025255

Pulled By: cpojer

fbshipit-source-id: 5cabd76c650126ed77dfb8b714e05980c4d0b6da
  • Loading branch information...
Krizzu authored and facebook-github-bot committed Feb 11, 2019
1 parent 1a26f97 commit ffe37487b228b77a3697c32767e91f1dd68041d8
Showing with 6 additions and 0 deletions.
  1. +6 −0 Libraries/react-native/react-native-implementation.js
@@ -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',
);
return require('AsyncStorage');
},
get BackHandler() {

0 comments on commit ffe3748

Please sign in to comment.
You can’t perform that action at this time.