UNPKG

468 BTypeScriptView Raw
1import React, { ComponentProps } from 'react';
2
3import BlurViewAndroid from './BlurView.android';
4import BlurViewIOS from './BlurView.ios';
5import BlurViewWeb from './BlurView.web';
6
7type Narrow<T1, T2> = T1 extends T2 ? T1 : T2 extends T1 ? T2 : never;
8type CommonBlurView = Narrow<Narrow<BlurViewIOS, BlurViewAndroid>, BlurViewWeb>;
9
10export default class BlurView extends React.Component<
11 ComponentProps<typeof CommonBlurView> // eslint-disable-line no-undef
12> {}