Skip to content

Commit 6d52b01

Browse files
Merge pull request #10 from mahipalsingh-syt/master
children props added in IProps to support Typescript
2 parents 9b5bc10 + ec0ab50 commit 6d52b01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/containers/Root.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import { useContext } from 'react';
2+
import { useContext, ReactElement } from 'react';
33
import { useColorScheme, View } from 'react-native';
44
import { SafeAreaInsetsContext, SafeAreaProvider } from 'react-native-safe-area-context';
55
import { Dialog, IConfigDialog, IConfigToast, Toast } from '../index';
@@ -10,6 +10,7 @@ type IProps = {
1010
toastConfig?: Pick<IConfigToast, 'autoClose'>;
1111
theme?: 'light' | 'dark';
1212
colors?: [IColors, IColors] /** ['light_colors' , 'dark_colors'] */;
13+
children: ReactElement | ReactElement[];
1314
};
1415

1516
const Root: React.FunctionComponent<IProps> = ({ theme, colors, children, dialogConfig, toastConfig }) => {

0 commit comments

Comments
 (0)