Revize 8c3203e0
Přidáno uživatelem Schwobik před téměř 2 roky(ů)
src/pages/HomePage.tsx | ||
---|---|---|
8 | 8 |
import { DrawerScreenProps } from "@react-navigation/drawer" |
9 | 9 |
import { RootDrawerParamList } from "./Navigation" |
10 | 10 |
import { log } from "../logging/logger" |
11 |
import { HOME_PAGE_IMG_URL } from "../api/constants" |
|
11 | 12 |
// import { Image } from "react-native" |
12 | 13 |
|
13 | 14 |
const HomePage = ({navigation}: DrawerScreenProps<RootDrawerParamList, 'Home'>) => { |
... | ... | |
22 | 23 |
if (data === null || data.length === 0 && !loading) { |
23 | 24 |
dispatch(fetchData()) |
24 | 25 |
} |
25 |
// Image.getSize("http:/147.228.173.159/static/home/Rudolf-Aachen-crop.png", (width, height) => { |
|
26 |
// setAspectRatio(width / height) |
|
27 |
// }) |
|
28 | 26 |
|
29 | 27 |
}, []) |
30 | 28 |
|
... | ... | |
37 | 35 |
<ApplicationHeading/> |
38 | 36 |
<ScrollView mb={5} > |
39 | 37 |
<Image |
40 |
source={ {uri: "http:/147.228.173.159/static/home/Rudolf-Aachen-crop.png"} }
|
|
38 |
source={ {uri: HOME_PAGE_IMG_URL} }
|
|
41 | 39 |
w={"100%"} h={ 200 } |
42 | 40 |
resizeMode={"contain"} |
43 | 41 |
alignSelf={ "center" } |
Také k dispozici: Unified diff
Switched to production
re #10715