UNPKG

@cycle/react-native

Version:

Cycle.js driver that uses React Native to render

14 lines (13 loc) 634 B
import { ReactElement, ComponentType } from 'react'; export declare type Children = Array<ReactElement<any>> | string; export declare type HelperSig<P> = { (sel: symbol): ReactElement<P>; (child: string): ReactElement<P>; (props: P): ReactElement<P>; (children: Children): ReactElement<P>; (sel: string | symbol, props: P): ReactElement<P>; (props: P, children: Children): ReactElement<P>; (sel: string | symbol, children: Children): ReactElement<P>; (sel: string | symbol, props: P, children: Children): ReactElement<P>; }; export declare function makeHelper<P>(type: ComponentType<P>): HelperSig<P>;