Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [{id:1, user:A}, {id:2, user:B}, {id:3, user:C}]
- const users = await AsyncStorage.getItem('users');
- const alteredUsers = users.splice(users.findIndex(x => x.id === someId), 1);
- AsyncStorage.setItem('users', alteredUsers);
Add Comment
Please, Sign In to add comment