react-native-multiple-modals
Version:
Native implementation with the ability to display multiple Modals
19 lines (16 loc) • 734 B
text/typescript
/* eslint-disable filename-rules/match */
/* eslint-disable @typescript-eslint/no-empty-object-type */
import type { ViewProps } from 'react-native';
import { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
type PressBackAndroidEvent = Readonly<{}>;
interface NativeProps extends ViewProps {
onPressBackAndroid?: DirectEventHandler<PressBackAndroidEvent>;
statusBarTranslucent?: boolean;
statusBarIconsStyle?: string;
animationType: string;
}
// Codegen doesn't accept variables, so component name is hardcoded
export default codegenNativeComponent<NativeProps>('RNTModalView', {
interfaceOnly: true,
});