Skip to content

Commit

Permalink
delete the removeItems function
Browse files Browse the repository at this point in the history
  • Loading branch information
aline-borges committed Nov 10, 2020
1 parent 5f32017 commit eeaaa8d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/screens/Locations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ const Locations = ({ navigation }) => {
setLoading(false)
};

const removeItem = async () => {
await AsyncStorage.removeItem("locationData"));
}

const renderLocation = location => {
return (
Expand All @@ -62,10 +59,6 @@ const Locations = ({ navigation }) => {
<Text style={styles.time}>{location.hour}</Text>
</View>
<Text style={styles.temperature}>{parseInt(location.data.main.temp)}°</Text>
<TouchableOpacity
onPress={removeItem}>
<Feather name="trash-o" style={styles.icon} />
</TouchableOpacity>
</View>
</TouchableOpacity>
);
Expand Down

0 comments on commit eeaaa8d

Please sign in to comment.