Closed LahmerIlyas closed 1 year ago
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch react-native-view-shot@3.5.0 for the project I'm working on.
react-native-view-shot@3.5.0
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-view-shot/src/index.d.ts b/node_modules/react-native-view-shot/src/index.d.ts index 07128e1..fe3097c 100644 --- a/node_modules/react-native-view-shot/src/index.d.ts +++ b/node_modules/react-native-view-shot/src/index.d.ts @@ -11,6 +11,7 @@ declare module 'react-native-view-shot' { import { Component, ReactInstance, RefObject, ReactNode } from 'react' import { ViewStyle } from 'react-native' + import type { LayoutChangeEvent } from 'react-native'; export interface CaptureOptions { /** @@ -83,9 +84,9 @@ declare module 'react-native-view-shot' { onCaptureFailure?(error: Error): void; /** * Invoked on mount and layout changes - * @param {LayoutEvent} event + * @param {LayoutChangeEvent} event */ - onLayout?(event: LayoutEvent): void; + onLayout?(event: LayoutChangeEvent): void; /** * style prop as ViewStyle */
This issue body was partially generated by patch-package.
Thanks. could you send a PR? π
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch
react-native-view-shot@3.5.0
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.