diff --git a/src/repository/screens/repository.screen.js b/src/repository/screens/repository.screen.js index 5eddb3109..c61b92cb5 100644 --- a/src/repository/screens/repository.screen.js +++ b/src/repository/screens/repository.screen.js @@ -2,12 +2,7 @@ import React, { Component } from 'react'; import { connect } from 'react-redux'; import styled from 'styled-components'; -import { - StyleSheet, - RefreshControl, - Share, - ActivityIndicator, -} from 'react-native'; +import { RefreshControl, Share, ActivityIndicator } from 'react-native'; import { ListItem } from 'react-native-elements'; import ActionSheet from 'react-native-actionsheet'; import { RestClient } from 'api'; @@ -74,16 +69,16 @@ const LoadingMembersContainer = styled.View` padding: 5px; `; -const styles = StyleSheet.create({ - listTitle: { +const SectionListItem = styled(ListItem).attrs({ + titleStyle: { color: colors.black, ...fonts.fontPrimary, }, - listContainerStyle: { + containerStyle: { borderBottomColor: colors.greyLight, borderBottomWidth: 1, }, -}); +})``; class Repository extends Component { props: { @@ -366,15 +361,13 @@ class Repository extends Component { {!hasError && ( {showReadMe && ( - navigation.navigate('ReadMe', { repository, @@ -383,10 +376,8 @@ class Repository extends Component { underlayColor={colors.greyLight} /> )} -