diff --git a/.gitignore b/.gitignore index 2eab209390..97d6927f66 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ # dependencies node_modules +patches .pnp .pnp.js .env diff --git a/example/storybook-nativewind/src/core-components/nativewind/heading/index.tsx b/example/storybook-nativewind/src/core-components/nativewind/heading/index.tsx index 027beba6ce..5ca7bcc978 100644 --- a/example/storybook-nativewind/src/core-components/nativewind/heading/index.tsx +++ b/example/storybook-nativewind/src/core-components/nativewind/heading/index.tsx @@ -1,10 +1,8 @@ import React, { useCallback } from 'react'; import { H1, H2, H3, H4, H5, H6 } from '@expo/html-elements'; -import { cssInterop } from '@gluestack-ui/nativewind-utils/cssInterop'; +import { cssInterop } from 'nativewind'; import { headingStyle } from './styles'; -cssInterop(H4, { className: 'style' }); - const Heading = ({ className, size = 'lg', as: AsComp, ...props }: any) => { const MappedHeading = useCallback( () => { @@ -12,6 +10,7 @@ const Heading = ({ className, size = 'lg', as: AsComp, ...props }: any) => { case '5xl': case '4xl': case '3xl': + cssInterop(H1, { className: 'style' }); return (