Skip to content

Commit

Permalink
Update ConditionalAsyncStorage.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yusinto committed Dec 22, 2023
1 parent 38cac64 commit 4c1dfea
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ let ConditionalAsyncStorage: any;
try {
// react-native version < 0.71
ConditionalAsyncStorage = require('react-native').AsyncStorage;
console.log('============ Native AsyncStorage');
} catch (e) {
// react-native version >= 0.71
console.log('============ @react-native-async-storage/async-storage');
ConditionalAsyncStorage = require('@react-native-async-storage/async-storage').default;
}

Expand Down

0 comments on commit 4c1dfea

Please sign in to comment.