gre / react-native-view-shot

Snapshot a React Native view and save it to an image
https://github.com/gre/react-native-view-shot-example
MIT License
2.64k stars 343 forks source link

[typescript] children type don`t found #441

Closed GregoryEsberci closed 1 year ago

GregoryEsberci commented 1 year ago

Type error with @types/react@18, the children in props are not found because implicit children were removed

the children in props are not found because implicit children was removed

    Type '{ children: Element[]; style: { backgroundColor: string; }; ref: RefObject<ViewShot>; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ViewShot> & Readonly<ViewShotProperties>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ViewShot> & Readonly<ViewShotProperties>'.