UNPKG

react-native-multiple-modals

Version:

Native implementation with the ability to display multiple Modals

18 lines (14 loc) 632 B
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, });