Open KOWLOR opened 1 year ago
Describe the bug Using Expo-router, <HolItem /> translates on the Y axis the height if a header of a <Stack />, even if the prop disabledMove is set.
<HolItem />
<Stack />
disabledMove
To Reproduce Steps to reproduce the behavior:
Create a basic expo-router file based routing in /app create a _layout.tsx
/app
_layout.tsx
/app _layout.tsx index.tsx
In _layout.tsx, create a basic that returns a navigation
return (<> <Stack screenOptions={{ headerShown: true }}> <Stack.Screen name="index" options={{ headerLargeTitle: false }} /> </Stack> </> )
In index.tsx, use <HoltItem />
index.tsx
<HoltItem />
<HoldItem activateOn="tap" disableMove items={[ { text: 'Reply', onPress: () => {} }, { text: 'Edit', onPress: () => {} }, { text: 'Delete', onPress: () => {} }, ]}> <Text>My Action</Text> </HoldItem>
Click on My Action, this text will translate on Y axis to a distance that is equal to the header's height.
My Action
Expected behavior The My Action text should not move.
Additional context There is no move by setting headerShown: false in the <Stack />, but I need that header.
headerShown: false
everyone has leaved this lib
@fukemy theres no other good libs that work with expo, v sad lol
Describe the bug Using Expo-router,
<HolItem />
translates on the Y axis the height if a header of a<Stack />
, even if the propdisabledMove
is set.To Reproduce Steps to reproduce the behavior:
Create a basic expo-router file based routing in
/app
create a_layout.tsx
In that returns a navigation
_layout.tsx
, create a basicIn
index.tsx
, use<HoltItem />
Click on
My Action
, this text will translate on Y axis to a distance that is equal to the header's height.Expected behavior The
My Action
text should not move.Additional context There is no move by setting
headerShown: false
in the<Stack />
, but I need that header.