-
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
Luca Caputo
committed
Dec 5, 2024
1 parent
a52ce1d
commit ad547a5
Showing
3 changed files
with
66 additions
and
10 deletions.
There are no files selected for viewing
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,40 @@ | ||
import { IMG_HEIGHT } from "@/constants"; | ||
import { useLocalSearchParams } from "expo-router"; | ||
import { StyleSheet, View, Text } from "react-native"; | ||
import Animated, { FadeInDown } from "react-native-reanimated"; | ||
import { Image } from "expo-image"; | ||
|
||
const DetailPage = () => { | ||
const { detail } = useLocalSearchParams<{ detail: string }>(); | ||
|
||
return ( | ||
<View style={styles.mainContainer}> | ||
<View style={styles.imageWrapper}> | ||
<Image source={detail} style={styles.image} /> | ||
</View> | ||
<Animated.View style={[{ padding: 16 }]} entering={FadeInDown.delay(400)}> | ||
<Text style={{ fontSize: 20 }}> | ||
Eu do nulla officia sunt magna incididunt ipsum do dolor Lorem aliqua. | ||
Qui aute elit cupidatat adipisicing magna proident adipisicing velit | ||
quis amet aliquip ut occaecat. Eiusmod Lorem nulla et deserunt amet in | ||
adipisicing ipsum sit mollit magna ullamco Lorem aliqua. Sint tempor | ||
reprehenderit commodo fugiat fugiat. Aliquip adipisicing eu eu | ||
reprehenderit aute pariatur. Deserunt qui sint anim consequat fugiat | ||
consectetur duis aute. | ||
</Text> | ||
</Animated.View> | ||
</View> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
mainContainer: { | ||
flex: 1, | ||
}, | ||
imageWrapper: { | ||
height: IMG_HEIGHT + 300, | ||
}, | ||
image: { flex: 1, width: "100%" }, | ||
}); | ||
|
||
export default DetailPage; |
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