Skip to content

Instantly share code, notes, and snippets.

@kiok46
Last active June 27, 2017 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiok46/74a97fbf34ecfd188544f3b676164c56 to your computer and use it in GitHub Desktop.
Save kiok46/74a97fbf34ecfd188544f3b676164c56 to your computer and use it in GitHub Desktop.
Search HistoryCard List like in DuckDuckGo app.

Search HistoryCard List like in DuckDuckGo app.

The card.

<Card
    marginBottomProp={0}
	backgroundColorProp={'white'}
>
	<View style={styles.searchListItemStyle}>
		<Icon
			name='watch-later'
			color="#C0C0C0"
		/>
		<Text
		    style={styles.searchListItemTextStyle}
			numberOfLines={1}
		>
		Search
		</Text>
		<Icon
			name='add'
			color="#C0C0C0"
		/>
	</View>
</Card>

and the styling

searchListItemStyle: {
	flexDirection: 'row',
	justifyContent: 'space-around',
	marginTop: 10,
	marginBottom: 10,
	marginRight: 20,
	marginLeft: 20,

},
searchListItemTextStyle: {
paddingTop: 5,
	fontSize: 13,
	marginLeft: 30,
	marginRight: 30,
	width: 275,
}
@kiok46
Copy link
Author

kiok46 commented Jun 27, 2017

screen shot 2017-06-27 at 3 33 08 pm

File are at:

components/Card, screens/SearchScreen/SearchList

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment