Projekt

Obecné

Profil

« Předchozí | Další » 

Revize ca53e9f1

Přidáno uživatelem Schwobik před téměř 2 roky(ů)

Demo of listview implemented
re #10342

Zobrazit rozdíly:

src/pages/SearchPage.tsx
1
import { Center, KeyboardAvoidingView, Text } from "native-base"
1
import { Center, KeyboardAvoidingView, ScrollView, Text, VStack } from "native-base"
2 2
import ListView from "../components/listView/ListView"
3 3
import SearchForm from "../components/search/SearchForm"
4 4
import { Platform } from "react-native"
......
8 8
    return (
9 9
        <KeyboardAvoidingView
10 10
            h={ {
11
                base: "400px",
12 11
                lg: "auto"
13 12
            } }
14 13
            behavior={ Platform.OS === "ios" ? "padding" : "height" }
15 14
        >
16
            <Center>
17
                <SearchForm/>
18
                <ListView/>
19
            </Center>
15
            <ScrollView>
16
                <VStack>
17
                    <SearchForm/>
18
                    <ListView/>
19
                </VStack>
20
            </ScrollView>
20 21
        </KeyboardAvoidingView>
21 22
    )
22 23
}

Také k dispozici: Unified diff