diff --git a/apps/starter-kit-next/components/ui/badge/index.tsx b/apps/starter-kit-next/components/ui/badge/index.tsx index 924716776..7eafb6826 100644 --- a/apps/starter-kit-next/components/ui/badge/index.tsx +++ b/apps/starter-kit-next/components/ui/badge/index.tsx @@ -1,5 +1,5 @@ 'use client'; -import React from 'react'; +import React, { useMemo } from 'react'; import { Text, View } from 'react-native'; import { PrimitiveIcon, UIIcon } from '@gluestack-ui/core/icon/creator'; import { tva } from '@gluestack-ui/utils/nativewind-utils'; @@ -120,15 +120,17 @@ function Badge({ className, ...props }: { className?: string } & IBadgeProps) { + + const contextValue = useMemo( + () => ({ action, variant, size }), + [action, variant, size] + ); + return ( {children}