Add moduleSuffixes to tsconfig (#11146)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
import {Component} from 'react'
|
||||
|
||||
import {type BottomSheetViewProps} from './BottomSheet.types'
|
||||
|
||||
export function BottomSheetNativeComponent(_: BottomSheetViewProps) {
|
||||
throw new Error('BottomSheetNativeComponent is not available on web')
|
||||
export class BottomSheetNativeComponent extends Component<BottomSheetViewProps> {
|
||||
/*
|
||||
* Native sheets do not exist on web; there is nothing to dismiss.
|
||||
*/
|
||||
static dismissAll = async () => {}
|
||||
|
||||
render(): never {
|
||||
throw new Error('BottomSheetNativeComponent is not available on web')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user