-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.d.ts
35 lines (29 loc) · 938 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
declare module 'react-native-component-viewer' {
import {ReactNode, Component} from 'react';
import {ViewStyle} from 'react-native';
export interface ComponentViewerPropsType {
onClose: () => any;
}
// eslint-disable-next-line react/prefer-stateless-function
export class ComponentViewer extends Component<ComponentViewerPropsType> {}
/**
* Parameter for the exported methods
*/
export interface TestInterface {
name: string;
title?: string;
wrapperStyle?: ViewStyle | null,
}
type TestFunctionType = (props: {closeThisTest: () => void}) => ReactNode;
type TestType = TestFunctionType | ReactNode;
function addComponentTest(
component: TestType,
options: string | TestInterface | null,
wrapperStyle?: ViewStyle | null,
): void;
function addSceneTest(
component: TestType,
options: string | TestInterface | null,
wrapperStyle?: ViewStyle | null,
): void;
}