Skip to content

Commit 2eaac3c

Browse files
committed
fix: fix missing children in react 18 fc type
1 parent 544ffec commit 2eaac3c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/react-native-tailwind.macro/src/tailwind-context.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ const Context = createContext<TailwindContext>(DEFAULT_CONTEXT)
1616

1717
export interface TailwindProviderProps {
1818
dark?: boolean
19+
children?: React.ReactNode
1920
}
2021

21-
export const TailwindProvider: React.FunctionComponent<
22-
TailwindProviderProps
23-
> = ({ dark, children }) => {
22+
export const TailwindProvider = ({ dark, children }: TailwindProviderProps) => {
2423
// Memoize the context value to skip rerenders
2524
const value = useMemo(
2625
() => ({ ...DEFAULT_CONTEXT, dark: Boolean(dark) }),

0 commit comments

Comments
 (0)