Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
React native exaple for AsyncStorage with create, get, update, remove #14
Trying to use feathers-localstorage with React Native and AsyncStorage.
Hang on create, get.
Documentation has code for ReactNative with:
Previously I had successfully remove item without id with command:
Now I have item with "id":null
My storage items:
The id being
const storageKey = 'feathers'; AsyncStorage.getItem(storageKey).then(JSON.parse) .then(data => data.filter(current => current.id !== null)). .then(filteredData => AsyncStorage.setItem(storageKey, JSON.stringify(filteredData));