Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/screens/AppIntroScreen/AppIntroScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import AppIntroSlider from 'react-native-app-intro-slider'
import Constants from 'expo-constants'
import AsyncStorage from '@react-native-async-storage/async-storage'
import DeviceInfo from 'react-native-device-info'
import { Dimensions } from 'react-native'

const data = [
{
Expand Down Expand Up @@ -138,6 +139,11 @@ export default class AppIntroScreen extends React.Component {
}

_renderItem = ({ item }: { item: Item }) => {
const windowHeight = Dimensions.get('window').height;
const ImageHeight = (windowHeight) < 550 ? 240 : 320;
const ImageWidth = ImageHeight;
// console.log(windowHeight);
// console.log(ImageHeight);
return (
<View
style={[
Expand All @@ -148,7 +154,7 @@ export default class AppIntroScreen extends React.Component {
]}
>
<View style={styles.itemContainer}>
<Image source={item.image} style={styles.image} resizeMode="contain" />
<Image source={item.image} style={{ marginVertical: 32, height: ImageHeight, width: ImageWidth }} resizeMode="contain" />
<Text style={styles.text}>{item.text}</Text>
</View>
</View>
Expand Down