Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 293f99f8

Přidáno uživatelem Fantič před více než 1 rok

re #10819 ItemView notes: notesListView height refactor

Zobrazit rozdíly:

src/components/item/ItemView.tsx
11 11
import { useDispatch, useSelector } from "react-redux"
12 12
import { getItemNotes } from "../../stores/actions/itemThunks"
13 13

  
14
import { Dimensions } from "react-native";
15

  
14 16
interface ItemDetailProps {
15 17
    item: Item,
16 18
    itemLoading: boolean,
......
170 172
                    <Switch value={showRelatedComments} onChange={toggleRelatedComments} size="md" />
171 173
                </Flex>
172 174
                <Box height="120%">
173
                    <NotesListView requestPending={requestPending} notes={props.notes} navigation={props.navigation} handleCreateComment={handleCreateItemComment} />
175
                    <NotesListView height={Dimensions.get('window').height - 70 - 160} requestPending={requestPending} notes={props.notes} navigation={props.navigation} handleCreateComment={handleCreateItemComment} />
174 176
                </Box>
175 177
            </VStack>)
176 178
    );

Také k dispozici: Unified diff