Closed dcaminos closed 2 years ago
Are you using React 18 types? as they removed children props in FC
Yes I'm @types/react": "^18.0.8"
Yes that's causing the issue, we're working on a React 18 implementation
If you switch back to React 17 this will work
I'll close this issue as this is related to #338. Once react-pixi is working with React 18 this should also be fixed
Description
I'm getting a typescript error only when add children to any Container
Steps to reproduce
Posible solution
Replace
export const Container: React.FC<_ReactPixi.IContainer>;
forexport const Container: React.FC<PropsWithChildren<_ReactPixi.IContainer>>;
on this line: https://github.com/inlet/react-pixi/blob/05babb2e684905364794af861acd15e0d64ec9de/index.d.ts#L359