-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1677 from gluestack/feat/popover-arrow-support
Feat/popover arrow support
- Loading branch information
Showing
10 changed files
with
480 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
import { createStyle } from '@gluestack-style/react'; | ||
|
||
export const PopoverArrow = createStyle({}); | ||
export const PopoverArrow = createStyle({ | ||
'bg': '$backgroundLight50', | ||
'zIndex': 1, | ||
'position': 'absolute', | ||
'overflow': 'hidden', | ||
'_dark': { | ||
bg: '$backgroundDark900', | ||
}, | ||
'h': '$3.5', | ||
'w': '$3.5', | ||
':transition': { | ||
type: 'spring', | ||
damping: 18, | ||
stiffness: 250, | ||
mass: 0.9, | ||
opacity: { | ||
type: 'timing', | ||
duration: 50, | ||
delay: 50, | ||
}, | ||
}, | ||
'props': { | ||
softShadow: '3', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/themed/src/components/Popover/styled-components/Arrow.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { View } from 'react-native'; | ||
import { AnimatedView } from '@gluestack-style/animation-resolver'; | ||
import { styled } from '@gluestack-style/react'; | ||
|
||
export default styled(View, {}, { | ||
export default styled(AnimatedView, {}, { | ||
componentName: 'PopoverArrow', | ||
} as const); |
Oops, something went wrong.