react-native-screens
Version:
Native navigation primitives for your React Native app.
22 lines (16 loc) • 686 B
text/typescript
'use client';
import type { CodegenTypes as CT, ViewProps } from 'react-native';
import { codegenNativeComponent } from 'react-native';
// eslint-disable-next-line @typescript-eslint/ban-types
export type GenericEmptyEvent = Readonly<{}>;
export interface NativeProps extends ViewProps {
// Control
maxLifecycleState: CT.Int32;
screenKey: string;
// Events
onWillAppear?: CT.DirectEventHandler<GenericEmptyEvent>;
onDidAppear?: CT.DirectEventHandler<GenericEmptyEvent>;
onWillDisappear?: CT.DirectEventHandler<GenericEmptyEvent>;
onDidDisappear?: CT.DirectEventHandler<GenericEmptyEvent>;
}
export default codegenNativeComponent<NativeProps>('RNSStackScreen', {});