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