-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
56 changed files
with
2,774 additions
and
1,354 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = function (api) { | ||
api.cache(true); | ||
return { | ||
presets: ["babel-preset-expo"], | ||
presets: ['babel-preset-expo'], | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
import React from 'react'; | ||
import { View } from 'react-native'; | ||
|
||
import { Background } from '../../widgets/background'; | ||
import { LogoText, FlixText, FlexText, ExploreText } from './styles'; | ||
import { LogoText, FlixText, FlexText, ExploreText, Footer } from './styles'; | ||
import { JoinLoginButton } from './join-login-button'; | ||
|
||
interface ExploreViewProps {} | ||
|
||
export const ExploreView: React.FC<ExploreViewProps> = () => { | ||
export const ExploreView: React.FC<ExploreViewProps> = ({ children }) => { | ||
return ( | ||
<Background> | ||
<LogoText> | ||
<FlixText>Flix</FlixText> | ||
<FlixText>Flix </FlixText> | ||
<FlexText>Flex</FlexText> | ||
</LogoText> | ||
<ExploreText>Easy Explore</ExploreText> | ||
|
||
{children} | ||
<Footer> | ||
<JoinLoginButton /> | ||
</Footer> | ||
</Background> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
import { Entypo, Ionicons } from '@expo/vector-icons'; | ||
|
||
import JoinButton from '../../../images/svg/join-button'; | ||
import { Join, JContainer, ExploreInfoText, JText, JBtn } from './styles'; | ||
import { Button } from '../../widgets/Button'; | ||
|
||
interface JoinLoginButtonProps { | ||
show?: boolean; | ||
} | ||
|
||
export const JoinLoginButton: React.FC<JoinLoginButtonProps> = ({ show }) => { | ||
return ( | ||
<Join> | ||
<Button> | ||
<JoinButton /> | ||
</Button> | ||
<JContainer> | ||
<Entypo name="info-with-circle" size={24} color="black" /> | ||
<ExploreInfoText> | ||
To explore more click Join to sign in or sign up | ||
</ExploreInfoText> | ||
<JBtn> | ||
<Ionicons name="ios-enter-outline" size={24} color="white" /> | ||
<JText>Join</JText> | ||
</JBtn> | ||
</JContainer> | ||
</Join> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import React from 'react'; | ||
import { Dimensions, View, ScrollView } from 'react-native'; | ||
import Carousel from 'react-native-snap-carousel'; | ||
|
||
import { Container, ExploreInfoText, HeaderTitle } from './styles'; | ||
import { MovieCard, MoviceCardProps } from '../../widgets/movie-card'; | ||
import { VerticalMovieCard } from '../../widgets/movie-card/vertical-card'; | ||
import { wp, hp } from '../../../utils/normalize'; | ||
|
||
export const SCREEN_WIDTH = Dimensions.get('window').width; | ||
export const SCREEN_HEIGHT = Number(hp(250)); | ||
export const CAROUSEL_ITEM_WIDTH = Number(wp(305)); | ||
|
||
interface NowPlayingProps { | ||
data: { | ||
image: any; | ||
trailerLink?: string; | ||
title: string; | ||
time: string; | ||
genre: string; | ||
year: number; | ||
id: number; | ||
info: string; | ||
}[]; | ||
description: string; | ||
type: 'Upcoming Movies' | 'Coming Soon Movies'; | ||
} | ||
|
||
export const ExploreMoviesView: React.FC<NowPlayingProps> = ({ | ||
data, | ||
description, | ||
type, | ||
}) => { | ||
return ( | ||
<ScrollView> | ||
<Container> | ||
<ExploreInfoText>{description}</ExploreInfoText> | ||
<View style={{ flex: 0, marginVertical: Number(hp(30)) }}> | ||
<Carousel | ||
layout="default" | ||
data={data} | ||
firstItem={Math.floor(data.length / 2)} | ||
useScrollView | ||
renderItem={({ item }: { item: MoviceCardProps }) => ( | ||
<MovieCard comingSoon={type === 'Coming Soon Movies'} {...item} /> | ||
)} | ||
sliderWidth={SCREEN_WIDTH} | ||
itemWidth={CAROUSEL_ITEM_WIDTH} | ||
sliderHeight={SCREEN_HEIGHT} | ||
itemHeight={SCREEN_HEIGHT} | ||
contentContainerCustomStyle={{ flex: 0 }} | ||
slideStyle={{ flex: 0 }} | ||
/> | ||
</View> | ||
<HeaderTitle>{type}</HeaderTitle> | ||
{data.map(item => ( | ||
<VerticalMovieCard key={item.id} {...item} /> | ||
))} | ||
</Container> | ||
</ScrollView> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
import React from 'react'; | ||
import { ScrollView } from 'react-native'; | ||
import { Entypo } from '@expo/vector-icons'; | ||
import { Rating } from 'react-native-ratings'; | ||
|
||
import { | ||
Container, | ||
ExploreInfoText, | ||
LContainer, | ||
LAllowButton, | ||
LInfoText, | ||
CheckIcon, | ||
LHeader, | ||
LHeaderText, | ||
TheaterContainer, | ||
ImageView, | ||
TheaterDetails, | ||
TheaterTitle, | ||
TheaterInfo, | ||
TheaterInfoText, | ||
} from './styles'; | ||
|
||
interface TheaterProps { | ||
image: any; | ||
title: string; | ||
info: string; | ||
stars: number; | ||
id: number; | ||
} | ||
|
||
interface NearTheaterProps { | ||
location?: string; | ||
data: TheaterProps[]; | ||
handleLocation(): void; | ||
} | ||
|
||
interface LocationAccesRequestProps { | ||
handleLocation(): void; | ||
} | ||
|
||
export const LocationAccesRequest: React.FC<LocationAccesRequestProps> = ({ | ||
handleLocation, | ||
}) => { | ||
return ( | ||
<LContainer> | ||
<LHeader> | ||
<Entypo name="location-pin" size={24} color="#ff2435" /> | ||
<LHeaderText>LOCATION</LHeaderText> | ||
</LHeader> | ||
<LInfoText> | ||
Please, Enable location access , so we could provide you accurate result | ||
of nearest show and theaters | ||
</LInfoText> | ||
<LAllowButton onPress={() => handleLocation()}> | ||
<CheckIcon source={require('../../../../assets/check-green.png')} /> | ||
<LInfoText style={{ marginLeft: 12 }}>Allow</LInfoText> | ||
</LAllowButton> | ||
</LContainer> | ||
); | ||
}; | ||
|
||
export const MovieTheater: React.FC<TheaterProps> = ({ | ||
image, | ||
title, | ||
info, | ||
stars, | ||
}) => { | ||
return ( | ||
<TheaterContainer> | ||
<ImageView source={image} /> | ||
<TheaterDetails> | ||
<TheaterTitle bold numberOfLines={1}> | ||
{title} | ||
</TheaterTitle> | ||
<TheaterInfo> | ||
<Rating | ||
startingValue={stars} | ||
readonly | ||
tintColor="#000" | ||
imageSize={30} | ||
/> | ||
<Entypo name="chevron-right" size={50} color="#fff" /> | ||
</TheaterInfo> | ||
<TheaterInfoText numberOfLines={2}>{info}</TheaterInfoText> | ||
</TheaterDetails> | ||
</TheaterContainer> | ||
); | ||
}; | ||
|
||
export const NearTheater: React.FC<NearTheaterProps> = ({ | ||
location, | ||
data, | ||
handleLocation, | ||
}) => { | ||
return ( | ||
<ScrollView> | ||
<Container> | ||
<ExploreInfoText> | ||
What is happening around you, Theaters that are open now playing . | ||
</ExploreInfoText> | ||
{location ? ( | ||
data?.map((item) => <MovieTheater key={item.id} {...item} />) | ||
) : ( | ||
<LocationAccesRequest handleLocation={handleLocation} /> | ||
)} | ||
</Container> | ||
</ScrollView> | ||
); | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.