File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
lib/utils/import.react_native/@react-native-async-storage Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 17
17
import type { AsyncStorageStatic } from '@react-native-async-storage/async-storage'
18
18
19
19
export const getDefaultAsyncStorage = ( ) : AsyncStorageStatic => {
20
- try {
21
- // eslint-disable-next-line @typescript-eslint/no-var-requires
22
- return require ( '@react-native-async-storage/async-storage' ) . default ;
23
- } catch ( e ) {
24
- // Better error message than unknown module not found
25
- throw new Error ( '@react-native-async-storage/async-storage is not available' ) ;
26
- }
20
+ try {
21
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
22
+ return require ( '@react-native-async-storage/async-storage' ) . default ;
23
+ } catch ( e ) {
24
+ // Better error message than unknown module not found
25
+ throw new Error ( '@react-native-async-storage/async-storage is not available' ) ;
26
+ }
27
27
} ;
You can’t perform that action at this time.
0 commit comments