diff --git a/example/storybook/src/ui/components/MediaAndIcons/Icon/index.stories.mdx b/example/storybook/src/ui/components/MediaAndIcons/Icon/index.stories.mdx
index 470538ca01..6508ff9dd3 100644
--- a/example/storybook/src/ui/components/MediaAndIcons/Icon/index.stories.mdx
+++ b/example/storybook/src/ui/components/MediaAndIcons/Icon/index.stories.mdx
@@ -299,12 +299,11 @@ Below is a list of all of the icons in the library.
GlobeIcon,
ThreeDotsIcon,
Icon,
- PlayIcon
+ PlayIcon,
},
argsType: {},
}}
-/>
-
+ />
#### Lucide Icons (Recommended)
diff --git a/packages/nativewind/utils/package.json b/packages/nativewind/utils/package.json
index 6bed29b946..d4a58d558e 100644
--- a/packages/nativewind/utils/package.json
+++ b/packages/nativewind/utils/package.json
@@ -14,7 +14,7 @@
"ios",
"nextjs"
],
- "version": "0.0.8",
+ "version": "0.0.10",
"main": "lib/commonjs/index",
"module": "lib/module/index",
"types": "lib/typescript/index.d.ts",
diff --git a/packages/nativewind/utils/src/context.ts b/packages/nativewind/utils/src/context.ts
index 03ec48e0be..e4ff2de092 100644
--- a/packages/nativewind/utils/src/context.ts
+++ b/packages/nativewind/utils/src/context.ts
@@ -1,5 +1,4 @@
'use client';
-
import { createContext, useContext } from 'react';
export const ParentContext = createContext({});
diff --git a/packages/nativewind/utils/src/cssInterop.web.tsx b/packages/nativewind/utils/src/cssInterop.web.tsx
index 77ec595a88..e427c48fb6 100644
--- a/packages/nativewind/utils/src/cssInterop.web.tsx
+++ b/packages/nativewind/utils/src/cssInterop.web.tsx
@@ -1 +1,2 @@
+'use client';
export { cssInterop } from 'nativewind';
diff --git a/packages/nativewind/utils/src/withStates.tsx b/packages/nativewind/utils/src/withStates.tsx
index 8049a54106..7b0b919fb7 100644
--- a/packages/nativewind/utils/src/withStates.tsx
+++ b/packages/nativewind/utils/src/withStates.tsx
@@ -1,5 +1,4 @@
'use client';
-
import React from 'react';
import { extractDataClassName } from './utils';
diff --git a/packages/nativewind/utils/src/withStyleContextAndStates.tsx b/packages/nativewind/utils/src/withStyleContextAndStates.tsx
index 1e0b0434c4..0dd8c1b862 100644
--- a/packages/nativewind/utils/src/withStyleContextAndStates.tsx
+++ b/packages/nativewind/utils/src/withStyleContextAndStates.tsx
@@ -1,5 +1,4 @@
'use client';
-
import React from 'react';
import { extractDataClassName } from './utils';
import { ParentContext } from './context';
diff --git a/packages/styled/react/src/plugins/font-resolver.tsx b/packages/styled/react/src/plugins/font-resolver.tsx
index 364a8ddd9a..0535f1afdd 100644
--- a/packages/styled/react/src/plugins/font-resolver.tsx
+++ b/packages/styled/react/src/plugins/font-resolver.tsx
@@ -81,6 +81,14 @@ export class FontResolver implements IStyledPlugin, FontPlugin {
mapFonts(style: any) {
if (isExpoStrategy()) {
+ const regex = /^([^_]*_){1,2}[^_]*$/;
+
+ if (style.fontFamily.match(regex)) {
+ delete style.fontWeight;
+ delete style.fontStyle;
+
+ return;
+ }
let fontFamilyValue = style.fontFamily
.replace(/ /g, '')
.replace(/^\w/, (c: any) => c.toUpperCase());
@@ -274,6 +282,7 @@ export class FontResolver implements IStyledPlugin, FontPlugin {
styledConfig
);
const styledConfigWithoutVariant = deepClone(styledConfig ?? {});
+
delete styledConfigWithoutVariant.variants;
let componentStyledObject = deepMerge(
@@ -298,7 +307,7 @@ export class FontResolver implements IStyledPlugin, FontPlugin {
fontStyle ?? componentStyledObject.fontStyle;
}
- const sxPropsWithThemeProps = deepMerge(sx, componentStyledObject);
+ const sxPropsWithThemeProps = deepMerge(componentStyledObject, sx);
const [resolvedSxProps, , ,] = this.inputMiddleWare(
sxPropsWithThemeProps,
diff --git a/packages/styled/react/src/styled.tsx b/packages/styled/react/src/styled.tsx
index 4d1190a6e5..a364f5b2eb 100644
--- a/packages/styled/react/src/styled.tsx
+++ b/packages/styled/react/src/styled.tsx
@@ -125,7 +125,7 @@ function convertUtiltiyToSXFromProps(
pluginName
]?.inputMiddleWare(
resolvedSxVerbose,
- true,
+ false,
false,
Component,
componentStyleConfig,
@@ -2110,7 +2110,7 @@ export function verboseStyled(
? {
...variantProps,
states: states,
- // sx: componentProps.sx,
+ sx: componentProps.sx,
}
: {};
@@ -2185,7 +2185,8 @@ export function verboseStyled
(
StyledComp.isStyledComponent = true;
return StyledComp as ForwardRefExoticComponent<
- StyledComponentProps
+ StyledComponentProps &
+ React.RefAttributes
>;
}