Skip to content

Commit

Permalink
fix: vstack and button
Browse files Browse the repository at this point in the history
  • Loading branch information
Viraj Ajay Joshi authored and Viraj Ajay Joshi committed Mar 5, 2024
1 parent b56beb8 commit f0cbcb6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,12 @@ const buttonIconStyle = tva({
],
});

type IButtonProps = React.ComponentProps<typeof UIButton> &
type IButtonProps = Omit<React.ComponentProps<typeof UIButton>, 'context'> &
VariantProps<typeof buttonStyle>;

type IButtonTextProps = React.ComponentProps<typeof UIButton.Text> &
VariantProps<typeof buttonTextStyle>;

const Button = React.forwardRef(
(
{
Expand All @@ -244,6 +245,8 @@ const Button = React.forwardRef(
}
);

<Button></Button>;

type IButtonIcon = React.ComponentProps<typeof UIButton.Icon> & {
as?: any;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { tva, VariantProps } from '@gluestack-ui/nativewind-utils';
import { View } from 'react-native';

const vstackStyle = tva({
base: 'flex-column',
base: 'flex-col',
variants: {
space: {
'xs': 'gap-1',
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3297,11 +3297,6 @@
"@react-native-aria/focus" "^0.2.9"
"@react-native-aria/interactions" "^0.2.11"

"@gluestack-ui/config-v2@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@gluestack-ui/config-v2/-/config-v2-1.0.1.tgz#4dafb76fe5c2fcf2666764e5dad4a402369116e6"
integrity sha512-7t/rpZ09iwxCJfN4x9EoScahuqIkc4BEQsWV0aF5AV4KPIVQZwwIJxLF5xIRpZ2guEGUomYCW/eHWTr5AJiRyA==

"@gluestack-ui/toast@^0.1.7":
version "0.1.20"
resolved "https://registry.yarnpkg.com/@gluestack-ui/toast/-/toast-0.1.20.tgz#863453f75d2e941000204a9524161bfd2500e320"
Expand Down

0 comments on commit f0cbcb6

Please sign in to comment.