Skip to content

Commit

Permalink
feat: move back button to left
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj committed Dec 28, 2020
1 parent 158ae0d commit 9cc5be3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/screens/SearchScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState } from 'react'
import { StyleSheet, View } from 'react-native'
import AntIcon from 'react-native-vector-icons/AntDesign'

import { SearchBar } from '../components/Search'
import BackButton from '../components/BackButton'
Expand Down Expand Up @@ -35,10 +36,10 @@ const SearchScreen = () => {
return (
<Container statusBarColor={Colours.MediumGray}>
<View style={styles.searchStrip}>
<BackButton label={<AntIcon name="arrowleft" size={24} />} style={styles.backButton} />
<View style={styles.searchBar}>
<SearchBar onChangeText={handleTextChange} />
</View>
<BackButton style={styles.backButton} />
</View>
</Container>
)
Expand Down

0 comments on commit 9cc5be3

Please sign in to comment.