diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/moments/TagFriendsScreen.tsx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/screens/moments/TagFriendsScreen.tsx b/src/screens/moments/TagFriendsScreen.tsx index 54da94ee..e810b510 100644 --- a/src/screens/moments/TagFriendsScreen.tsx +++ b/src/screens/moments/TagFriendsScreen.tsx @@ -102,12 +102,21 @@ const TagFriendsScreen: React.FC<TagFriendsScreenProps> = ({route}) => { {taggedUsers.map((user) => ( <View> <TouchableOpacity - onPress={() => console.log('Remove user')}> + style={{ + width: 20, + height: 20, + }} + onPress={() => { + const filteredSelection = taggedUsers.filter( + (item) => user.id !== item.id, + ); + setTaggedUsers(filteredSelection); + }}> <Image source={require('../../assets/icons/tagging/x-icon.png')} style={{ - width: 15, - height: 15, + width: 20, + height: 20, position: 'absolute', right: 15, }} |