Skip to content

Commit

Permalink
Removed Home Component Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AmarKayed committed Jun 11, 2022
1 parent ea32210 commit a19407a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 29 deletions.
26 changes: 1 addition & 25 deletions src/views/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,7 @@ const Home = () => {
})}
</ScrollView>

<View
style={{
flexDirection: 'row',
marginTop: 20,
marginBotton: 20,
// marginLeft: 'auto',
// marginRight: 'auto',
// paddingLeft: 'auto',
// paddingRight: 'auto',

// justifyContent: 'space-evenly',
justifyContent: 'center',
alignItems: 'center',
// width: '100%',
height: 0.1 * height,
// backgroundColor: 'green',
}}>
<View style={HomeStyles.searchContainer}>
<SearchBar state={[search, setSearch]} style={{ width: '80%' }} />
<TouchableOpacity
onPress={filterOptions}
Expand All @@ -74,14 +58,6 @@ const Home = () => {
}}
/>
</TouchableOpacity>
{/*
<Icon
name="options"
style={{
...SearchBarStyles.searchIcon,
...HomeStyles.filterOptionsIcon,
}}
/> */}
</View>
</SafeAreaView>
);
Expand Down
14 changes: 10 additions & 4 deletions src/views/Home/HomeStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,25 @@ export default HomeStyles = StyleSheet.create({
marginLeft: 16,
},

searchContainer: {
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
marginTop: 20,
marginBotton: 20,
height: 0.1 * height,
// backgroundColor: 'green',
},

filterOptionsContainer: {
justifyContent: 'center',
alignItems: 'center',
height: '100%',
width: '12%',

// backgroundColor: 'blue',
},

filterOptionsIcon: {
textAlign: 'center',
textAlignVertical: 'center',

fontSize: 30,
},
});

0 comments on commit a19407a

Please sign in to comment.