From a713004c9301bebd52b64cda752cf26e1e9125c3 Mon Sep 17 00:00:00 2001 From: Daniel Boros <56868953+dancixx@users.noreply.github.com> Date: Tue, 7 Jun 2022 00:33:34 +0200 Subject: [PATCH] Update index.d.ts --- src/index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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