mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-12 00:24:45 +08:00
fix: component context not being created
This commit is contained in:
@@ -74,7 +74,7 @@ export function styled<P>(
|
||||
children,
|
||||
} as unknown as P);
|
||||
|
||||
return !classes.includes("container")
|
||||
return !classes.includes("component")
|
||||
? element
|
||||
: createElement<PropsWithChildren<{ value: ComponentContext }>>(
|
||||
ComponentContext.Provider,
|
||||
|
||||
Reference in New Issue
Block a user