Skip to content

Commit

Permalink
Merge pull request #2 from gustavo-amaro/feature/new_ui
Browse files Browse the repository at this point in the history
change application ui | better images quality
  • Loading branch information
gustavo-amaro authored Sep 5, 2020
2 parents 5e5d2ee + 2526c5d commit 997b363
Show file tree
Hide file tree
Showing 6 changed files with 5,853 additions and 11 deletions.
Empty file modified .expo-shared/assets.json
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions pages/Main/components/Content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function Content({navigation=null}) {

const styles = StyleSheet.create({
list: {
height: '118.5%',
height: '100%'
},
listContent: {
alignItems: 'center',
Expand Down Expand Up @@ -81,7 +81,7 @@ function Content({navigation=null}) {
numColumns={2}
keyExtractor={(item, index) => index.toString()}
onEndReached={handleLoadMore}
onEndReachedThreshold={0.0000000001}
onEndReachedThreshold={0}
ListFooterComponent={renderFooterLoading}
/>
</Container>
Expand Down
10 changes: 6 additions & 4 deletions pages/Main/components/Content/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ import styled from 'styled-components/native';

export const Container = styled.View`
display: flex;
position: absolute;
flex-direction: row;
flex-wrap: wrap;
background: #fff;
width: 90%;
height: 80%;
width: 100%;
height: 75%;
z-index: 4;
margin-top: 25%;
border-radius: 10px;
bottom: 0;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
`;

export const MovieContainer = styled.View`
Expand Down
9 changes: 5 additions & 4 deletions pages/MovieDescription/components/Content/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ export const Container = styled.ScrollView`
display: flex;
position: absolute;
background: #fff;
width: 90%;
height: 68%;
width: 100%;
height: 70%;
z-index: 4;
top: 27%;
border-radius: 10px;
bottom: 0;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
padding: 10px;
`;
2 changes: 1 addition & 1 deletion pages/MovieDescription/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import api from "../../services/api";
import Icon from "react-native-vector-icons/FontAwesome";

function MovieDescription({ route, navigation }) {
const imageUrl = "https://image.tmdb.org/t/p/w500";
const imageUrl = "https://image.tmdb.org/t/p/original";
const { movieId } = route.params;
const [movie, setMovie] = useState({});
const [actors, setActors] = useState([]);
Expand Down
Loading

0 comments on commit 997b363

Please sign in to comment.