UNPKG

piral-native

Version:

The Piral framework for use in React Native.

21 lines (19 loc) 824 B
/// <reference types="react" /> import { PiralConfiguration } from 'piral-core'; import { PiralRenderBaseOptions } from './types'; /** * Gets a new instantiated native Piral instance using the provided options. * @param config The configuration to use when creating the Piral instance. * @param options The options to use when rendering the Piral instance. * @example ```ts import { AppRegistry } from 'react-native'; import { getAppInstance } from 'piral-native'; const { app } = getAppInstance(); AppRegistry.registerComponent(appName, () => () => app); ``` */ export declare function getAppInstance(config?: PiralConfiguration, options?: PiralRenderBaseOptions): { instance: import("piral-core").PiralInstance; app: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; };