Skip to content

Commit

Permalink
Add type for useRenderInContext (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
chmac authored Jun 19, 2023
1 parent bdf3eef commit 8cf8d22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ declare module 'react-native-view-shot' {
* False by default, because it can have signoficant performance impact
*/
handleGLSurfaceViewOnAndroid?: boolean;
/**
* (iOS only) change the iOS snapshot strategy to use method renderInContext instead of drawViewHierarchyInRect
* which may help for some use cases.
*/
useRenderInContext?: boolean;
}

export interface ViewShotProperties {
Expand Down

0 comments on commit 8cf8d22

Please sign in to comment.