Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

AsyncStorage.getItem undefined is not an object

/*
Here's how to use the correct method for importing.

import AsyncStorage from '@react-native-community/async-storage';
This module is not exported as a react-native, so it must not have a square bracket.

Use in react-native module
*/

import { AsyncStorage } from 'react-native';
 
PREVIOUS NEXT
Tagged: #undefined #object
ADD COMMENT
Topic
Name
7+3 =