diff --git a/src/index.d.ts b/src/index.d.ts index d7755f7d..c5f992f1 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -9,7 +9,7 @@ */ declare module 'react-native-view-shot' { - import { Component, ReactInstance, RefObject } from 'react' + import { Component, ReactInstance, RefObject, ReactNode } from 'react' import { ViewStyle } from 'react-native' export interface CaptureOptions { @@ -58,6 +58,10 @@ declare module 'react-native-view-shot' { * use-cases. */ captureMode?: 'mount' | 'continuous' | 'update'; + /** + * children of ViewShot component + */ + children?: ReactNode; /** * when a captureMode is defined, this callback will be called with the capture result. * @param {string} uri