Skip to content

Commit 942305a

Browse files
authored
Revert "Adding support for RN 0.50+ (#504)" (#510)
This reverts commit abdad34.
1 parent abdad34 commit 942305a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/StorageController.react-native.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ try {
1717
// for React Native 0.43+
1818
AsyncStorage = require('react-native/Libraries/react-native/react-native-implementation').AsyncStorage;
1919
} catch (error) {
20-
try {
21-
AsyncStorage = require('react-native/Libraries/react-native/react-native.js').AsyncStorage;
22-
} catch(error) {
23-
// for React Native 0.50+
24-
AsyncStorage = require('react-native/Libraries/Storage/AsyncStorage');
25-
}
20+
AsyncStorage = require('react-native/Libraries/react-native/react-native.js').AsyncStorage;
2621
}
2722

2823
var StorageController = {

0 commit comments

Comments
 (0)