mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 14:13:26 +00:00
replace all stylesheets with tailwind classes
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { Image, View } from 'react-native';
|
||||
import { Image } from 'react-native';
|
||||
|
||||
import { TMDB_POSTER_PATH } from '../../constants/General';
|
||||
import { BoldText, RegularText } from '../ui/Text';
|
||||
import { StyledText, StyledView } from '../ui/Styled';
|
||||
|
||||
export default function Item() {
|
||||
return (
|
||||
<View className="w-full">
|
||||
<View className="mb-2 aspect-[9/14] w-full overflow-hidden rounded-2xl">
|
||||
<StyledView className="w-full">
|
||||
<StyledView className="mb-2 aspect-[9/14] w-full overflow-hidden rounded-2xl">
|
||||
<Image
|
||||
source={{
|
||||
uri: `${TMDB_POSTER_PATH}/w342//gdIrmf2DdY5mgN6ycVP0XlzKzbE.jpg`,
|
||||
@@ -14,13 +14,13 @@ export default function Item() {
|
||||
}}
|
||||
className="h-full w-full object-cover"
|
||||
/>
|
||||
</View>
|
||||
<BoldText className="text-white">Hamilton</BoldText>
|
||||
<View className="flex-row items-center gap-3">
|
||||
<RegularText className="text-xs text-gray-600">Movie</RegularText>
|
||||
<View className="h-1 w-1 rounded-3xl bg-gray-600" />
|
||||
<RegularText className="text-sm text-gray-600">2023</RegularText>
|
||||
</View>
|
||||
</View>
|
||||
</StyledView>
|
||||
<StyledText className="font-bold text-white">Hamilton</StyledText>
|
||||
<StyledView className="flex-row items-center gap-3">
|
||||
<StyledText className="text-xs text-gray-600">Movie</StyledText>
|
||||
<StyledView className="h-1 w-1 rounded-3xl bg-gray-600" />
|
||||
<StyledText className="text-sm text-gray-600">2023</StyledText>
|
||||
</StyledView>
|
||||
</StyledView>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user