UNPKG

@fullstory/react-native

Version:
30 lines 1.45 kB
import { HostComponent } from 'react-native'; import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes'; import { ComponentRef } from 'react'; import { FullstoryStatic } from './fullstoryInterface'; interface NativeProps extends ViewProps { fsClass?: string; fsAttribute?: object; fsTagName?: string; dataElement?: string; dataSourceFile?: string; dataComponent?: string; } declare type FullStoryPrivateStatic = { onFSPressForward?(tag: number, isLongPress: boolean, hasPressHandler: boolean, hasLongPressHandler: boolean): void; }; export { FSPage } from './FSPage'; type FSComponentType = HostComponent<NativeProps>; type FSNativeInstance = ComponentRef<FSComponentType>; /** * Applies FullStory properties to an already-committed native instance by * dispatching a single batched native command. Invoked by the FullStory babel * plugin's Fabric commit-phase hook with the host component's public instance * and its committed props. iOS New Architecture only; on the old architecture * the regular view-manager prop pipeline applies these props instead. */ export declare function applyFSPropertiesToInstance(instance: FSNativeInstance | null | undefined, props: Record<string, unknown> | null | undefined): void; declare const FullstoryAPI: FullstoryStatic; export declare const PrivateInterface: FullStoryPrivateStatic; export default FullstoryAPI; //# sourceMappingURL=index.d.ts.map