diff --git a/.all-contributorsrc b/.all-contributorsrc
index 4fb03ef20..31eb7ea9a 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -684,6 +684,15 @@
"contributions": [
"code"
]
- }
+ },
+ {
+ "login": "apoeco",
+ "name": "Apostolis Economou",
+ "avatar_url": "https://avatars0.githubusercontent.com/u/7470681?v=4",
+ "profile": "https://github.com/apoeco",
+ "contributions": [
+ "code"
+ ]
+ },
]
}
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index c53c36447..9b0300f12 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -3,7 +3,7 @@
Thank you to all the people who have already contributed to GitPoint!
-| [
Houssein Djirdeh](https://houssein.me)
[π¬](#question-housseindjirdeh "Answering Questions") [π»](https://github.com/gitpoint/git-point/commits?author=housseindjirdeh "Code") [π¨](#design-housseindjirdeh "Design") [π](https://github.com/gitpoint/git-point/commits?author=housseindjirdeh "Documentation") [π](#review-housseindjirdeh "Reviewed Pull Requests") | [
George Jose](https://github.com/g2jose)
[π»](https://github.com/gitpoint/git-point/commits?author=g2jose "Code") | [
rmevans9](https://github.com/rmevans9)
[π»](https://github.com/gitpoint/git-point/commits?author=rmevans9 "Code") | [
Alexey Pyltsyn](http://lex111.ru)
[π»](https://github.com/gitpoint/git-point/commits?author=lex111 "Code") [π](https://github.com/gitpoint/git-point/issues?q=author%3Alex111 "Bug reports") [π](#translation-lex111 "Translation") | [
Jason Etcovitch](https://jasonet.co)
[π»](https://github.com/gitpoint/git-point/commits?author=JasonEtco "Code") | [
Hosmel Quintana](http://hosmelq.com)
[π»](https://github.com/gitpoint/git-point/commits?author=hosmelq "Code") |
+| [
Houssein Djirdeh](https://houssein.me)
[π¬](#question-housseindjirdeh "Answering Questions") [π»](https://github.com/gitpoint/git-point/commits?author=housseindjirdeh "Code") [π¨](#design-housseindjirdeh "Design") [π](https://github.com/gitpoint/git-point/commits?author=housseindjirdeh "Documentation") [π](#review-housseindjirdeh "Reviewed Pull Requests") | [
George Jose](https://github.com/g2jose)
[π»](https://github.com/gitpoint/git-point/commits?author=g2jose "Code") | [
rmevans9](https://github.com/rmevans9)
[π»](https://github.com/gitpoint/git-point/commits?author=rmevans9 "Code") | [
Alexey Pyltsyn](http://lex111.ru)
[π»](https://github.com/gitpoint/git-point/commits?author=lex111 "Code") [π](https://github.com/gitpoint/git-point/issues?q=author%3Alex111 "Bug reports") [π](#translation-lex111 "Translation") | [
Jason Etcovitch](https://jasonet.co)
[π»](https://github.com/gitpoint/git-point/commits?author=JasonEtco "Code") | [
Hosmel Quintana](http://hosmelq.com)
[π»](https://github.com/gitpoint/git-point/commits?author=hosmelq "Code") |
| :---: | :---: | :---: | :---: | :---: | :---: |
| [
Alejandro ΓÑñez Ortiz](http://co.linkedin.com/in/alejandronanez/)
[π»](https://github.com/gitpoint/git-point/commits?author=alejandronanez "Code") [π](#review-alejandronanez "Reviewed Pull Requests") | [
Patrick Wang](https://patw.me)
[π»](https://github.com/gitpoint/git-point/commits?author=patw0929 "Code") [π](https://github.com/gitpoint/git-point/issues?q=author%3Apatw0929 "Bug reports") [π](#translation-patw0929 "Translation") | [
Mike Kavouras](https://github.com/mikekavouras)
[π»](https://github.com/gitpoint/git-point/commits?author=mikekavouras "Code") [π](https://github.com/gitpoint/git-point/issues?q=author%3Amikekavouras "Bug reports") | [
Peter Lazar](https://github.com/peterlazar1993)
[π»](https://github.com/gitpoint/git-point/commits?author=peterlazar1993 "Code") | [
June Domingo](https://github.com/junedomingo)
[π»](https://github.com/gitpoint/git-point/commits?author=junedomingo "Code") [π](https://github.com/gitpoint/git-point/issues?q=author%3Ajunedomingo "Bug reports") | [
Antoine Boisadam](https://github.com/Antoine38660)
[π»](https://github.com/gitpoint/git-point/commits?author=Antoine38660 "Code") [π](https://github.com/gitpoint/git-point/issues?q=author%3AAntoine38660 "Bug reports") |
| [
Wang Shidong](https://wsdjeg.github.io)
[π](https://github.com/gitpoint/git-point/commits?author=wsdjeg "Documentation") | [
Swapnil Joshi](http://swapnilmj.users.sourceforge.net/)
[π](https://github.com/gitpoint/git-point/commits?author=swapnilmj "Documentation") | [
Rolf Koenders](https://github.com/RolfKoenders)
[π»](https://github.com/gitpoint/git-point/commits?author=RolfKoenders "Code") [π](https://github.com/gitpoint/git-point/issues?q=author%3ARolfKoenders "Bug reports") [π](#translation-RolfKoenders "Translation") | [
Andrew Dassonville](https://andrewda.me)
[π»](https://github.com/gitpoint/git-point/commits?author=andrewda "Code") [π¬](#question-andrewda "Answering Questions") [π](https://github.com/gitpoint/git-point/issues?q=author%3Aandrewda "Bug reports") [π](#review-andrewda "Reviewed Pull Requests") [β οΈ](https://github.com/gitpoint/git-point/commits?author=andrewda "Tests") | [
Anton](https://medium.com/@antondomashnev)
[π»](https://github.com/gitpoint/git-point/commits?author=Antondomashnev "Code") | [
Xuezheng Ma](https://github.com/xuezhma)
[π»](https://github.com/gitpoint/git-point/commits?author=xuezhma "Code") |
@@ -15,5 +15,5 @@ Thank you to all the people who have already contributed to GitPoint!
| [
Peter Blazejewicz](http://www.linkedin.com/in/peterblazejewicz)
[π](#translation-peterblazejewicz "Translation") | [
Eric Adamski](https://github.com/ericadamski)
[π](https://github.com/gitpoint/git-point/issues?q=author%3Aericadamski "Bug reports") | [
Jouderian Nobre Junior](https://github.com/jouderianjr)
[π»](https://github.com/gitpoint/git-point/commits?author=jouderianjr "Code") | [
Phi Dong](http://www.phidong.com)
[π»](https://github.com/gitpoint/git-point/commits?author=pdong "Code") | [
John Patrick Salcedo](https://github.com/jpls93)
[π»](https://github.com/gitpoint/git-point/commits?author=jpls93 "Code") | [
Γscar Carretero](https://github.com/ocarreterom)
[π»](https://github.com/gitpoint/git-point/commits?author=ocarreterom "Code") |
| [
Dyesse YUMBA](https://github.com/dyesseyumba)
[π§](#tool-dyesseyumba "Tools") | [
Bink](https://binkpitch.me/)
[π»](https://github.com/gitpoint/git-point/commits?author=binkpitch "Code") | [
khvilaboa](https://github.com/khvilaboa)
[π](#translation-khvilaboa "Translation") | [
James Glover](http://jamesmglover.com)
[π»](https://github.com/gitpoint/git-point/commits?author=jglover "Code") [β οΈ](https://github.com/gitpoint/git-point/commits?author=jglover "Tests") | [
Jose Luis Naranjo](https://co.linkedin.com/in/josenaranjo/en)
[π»](https://github.com/gitpoint/git-point/commits?author=josenaranjo "Code") | [
Tobias Lohse](http://MrLoh.se)
[π»](https://github.com/gitpoint/git-point/commits?author=MrLoh "Code") |
| [
Serhii Baraniuk](https://www.facebook.com/serhii.baraniuk)
[β οΈ](https://github.com/gitpoint/git-point/commits?author=kenitive "Tests") | [
Ben Snider](http://www.bensnider.com/)
[β οΈ](https://github.com/gitpoint/git-point/commits?author=stupergenius "Tests") | [
Simon Hoyos](https://www.linkedin.com/in/simonhoyos/)
[π»](https://github.com/gitpoint/git-point/commits?author=shmesa22 "Code") [π¨](#design-shmesa22 "Design") | [
Damien Leroy](https://github.com/ShiiFu)
[π](#translation-ShiiFu "Translation") | [
botbotbot](http://dev.im-bot.com)
[β οΈ](https://github.com/gitpoint/git-point/commits?author=ibotdotout "Tests") | [
Dmytro Kytsmen](https://github.com/Kietzmann)
[π](#translation-Kietzmann "Translation") |
-| [
TheCodeTalker](https://thecodetalker.github.io/)
[π»](https://github.com/gitpoint/git-point/commits?author=TheCodeTalker "Code") | [
Leonardo](https://github.com/LeoCp)
[π»](https://github.com/gitpoint/git-point/commits?author=LeoCp "Code") | [
Stephen](https://github.com/coderste)
[π](https://github.com/gitpoint/git-point/commits?author=coderste "Documentation") | [
Zahra Traboulsi](http://www.zahra.tech)
[π»](https://github.com/gitpoint/git-point/commits?author=ZahraTee "Code") [β οΈ](https://github.com/gitpoint/git-point/commits?author=ZahraTee "Tests") | [
Joseba Carral](http://codevs.es)
[π](#translation-jcarral "Translation") | [
CTownsdin](https://github.com/CTownsdin)
[π»](https://github.com/gitpoint/git-point/commits?author=CTownsdin "Code") |
+| [
TheCodeTalker](https://thecodetalker.github.io/)
[π»](https://github.com/gitpoint/git-point/commits?author=TheCodeTalker "Code") | [
Leonardo](https://github.com/LeoCp)
[π»](https://github.com/gitpoint/git-point/commits?author=LeoCp "Code") | [
Stephen](https://github.com/coderste)
[π](https://github.com/gitpoint/git-point/commits?author=coderste "Documentation") | [
Zahra Traboulsi](http://www.zahra.tech)
[π»](https://github.com/gitpoint/git-point/commits?author=ZahraTee "Code") [β οΈ](https://github.com/gitpoint/git-point/commits?author=ZahraTee "Tests") | [
Joseba Carral](http://codevs.es)
[π](#translation-jcarral "Translation") | [
CTownsdin](https://github.com/CTownsdin)
[π»](https://github.com/gitpoint/git-point/commits?author=CTownsdin "Code") | [
Apostolis Economou](https://github.com/apoeco)
[π»](https://github.com/gitpoint/git-point/commits?author=apoeco "Code") |
diff --git a/README.md b/README.md
index 21ac03967..5dc2a7c70 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@
[](https://travis-ci.org/gitpoint/git-point)
[](https://coveralls.io/github/gitpoint/git-point)
-[](#contributors)
+[](#contributors)
[](http://makeapullrequest.com)
[](http://commitizen.github.io/cz-cli/)
[](https://gitter.im/git-point)
diff --git a/src/components/repository-list-item.component.js b/src/components/repository-list-item.component.js
index f32ba27dd..f7fba86d7 100644
--- a/src/components/repository-list-item.component.js
+++ b/src/components/repository-list-item.component.js
@@ -1,5 +1,5 @@
import React from 'react';
-import { StyleSheet, Text, View } from 'react-native';
+import styled from 'styled-components/native';
import { ListItem, Icon } from 'react-native-elements';
import { emojifyText, abbreviateNumber } from 'utils';
@@ -11,129 +11,134 @@ type Props = {
navigation: Object,
};
-const styles = StyleSheet.create({
- wrapper: {
- marginTop: 5,
- marginBottom: 5,
- marginLeft: 5,
- },
- titleWrapper: {
- flexDirection: 'row',
- alignItems: 'center',
- },
- title: {
- color: colors.primaryDark,
- ...fonts.fontPrimarySemiBold,
- },
- privateIconContainer: {
- marginLeft: 6,
- },
- description: {
- color: colors.primaryDark,
- ...fonts.fontPrimaryLight,
- },
- extraInfo: {
- flexDirection: 'row',
- flex: 1,
- paddingTop: 5,
- },
- extraInfoSubject: {
- color: colors.greyDark,
- paddingLeft: 3,
- paddingTop: 2,
- marginRight: 15,
- fontSize: normalize(10),
- ...fonts.fontPrimary,
- },
- repositoryContainer: {
- justifyContent: 'center',
- flex: 1,
- },
- container: {
- borderBottomColor: colors.greyLight,
- borderBottomWidth: 1,
- },
-});
+const ListItemWrapper = styled.View`
+ margin-top: 5;
+ margin-bottom: 5;
+ margin-left: 5;
+`;
+
+const RepoContainer = styled.View`
+ justify-content: center;
+ flex: 1;
+`;
+
+const TitleWrapper = styled.View`
+ flex-direction: row;
+ align-items: center;
+`;
+
+const ColoredText = styled.Text`
+ color: ${colors.primaryDark};
+`;
+
+const TitleText = ColoredText.extend`
+ ${fonts.fontPrimarySemiBold};
+`;
+
+const PrivateIconContainer = styled.View`
+ margin-left: 6;
+`;
+
+const DescriptionText = ColoredText.extend`
+ ${fonts.fontPrimaryLight};
+`;
+
+const ExtraInfoWrapper = styled.View`
+ flex-direction: row;
+ flex: 1;
+ padding-top: 5;
+`;
+
+const ExtraInfoText = styled.Text`
+ color: ${colors.greyDark};
+ padding-left: 3;
+ padding-top: 2;
+ margin-right: 15;
+ ${fonts.fontPrimary};
+ font-size: ${normalize(10)};
+`;
+
+const ExtraInfoForksText = ExtraInfoText.extend`
+ padding-left: 0;
+ margin-right: 13;
+`;
const renderTitle = (repository, showFullName) => (
-
-
-
-
+
+
+
+
{showFullName ? repository.full_name : repository.name}
-
+
{repository.private && (
-
+
-
+
)}
-
-
- {emojifyText(repository.description)}
-
-
-
-
+
+ {emojifyText(repository.description)}
+
+
+
-
+
{abbreviateNumber(repository.stargazers_count)}
-
+
-
+
{abbreviateNumber(repository.forks_count)}
-
+
{repository.language !== null && (
)}
- {repository.language}
-
-
+ {repository.language}
+
+
);
+const Repository = styled(ListItem).attrs({
+ titleStyle: {
+ color: colors.primaryDark,
+ fontFamily: fonts.fontPrimarySemiBold.fontFamily,
+ },
+ underlayColor: colors.greyLight,
+ containerStyle: {
+ borderBottomColor: colors.greyLight,
+ borderBottomWidth: 1,
+ },
+})``;
+
export const RepositoryListItem = ({
repository,
showFullName,
navigation,
}: Props) => (
- navigation.navigate('Repository', { repository })}
/>
);