Skip to content

Commit

Permalink
Fixes #461: typescript of onLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
greweb committed Mar 24, 2023
1 parent 93a64ee commit 77e6df9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
declare module 'react-native-view-shot' {
import { Component, ReactInstance, RefObject, ReactNode } from 'react'
import { ViewStyle } from 'react-native'
import { LayoutChangeEvent } from 'react-native'


export interface CaptureOptions {
/**
Expand Down Expand Up @@ -83,9 +85,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
*/
Expand Down

0 comments on commit 77e6df9

Please sign in to comment.