Skip to content

Commit

Permalink
💫 Update: Types - RNIBlurNativeViewBaseProps
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Aug 24, 2024
1 parent 8ce4722 commit f199524
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions src/native_components/RNIBlurView/RNIBlurNativeView.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
import type { HostComponent, ViewProps } from 'react-native';

import { default as RNIBlurViewNativeComponent } from './RNIBlurViewNativeComponent';
import type { SharedViewEvents, AnimationConfig } from 'react-native-ios-utilities';
import {
default as RNIBlurViewNativeComponent,
type NativeProps as RNIBlurViewNativeComponentProps
} from './RNIBlurViewNativeComponent';

import type { SharedViewEvents, AnimationConfig, RemapObject } from 'react-native-ios-utilities';
import type { BlurViewConfig } from './BlurViewConfig';


export type RNIBlurNativeViewBaseProps = {
type RNIBlurViewNativeComponentPropsBase =
Omit<RNIBlurViewNativeComponentProps, keyof (ViewProps & SharedViewEvents)>

export type RNIBlurNativeViewBaseProps = RemapObject<RNIBlurViewNativeComponentPropsBase, {
blurConfig: BlurViewConfig;
animationConfig?: AnimationConfig;
animationDelay?: number;
};
}>;

export type RNIBlurNativeViewProps =
SharedViewEvents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { BubblingEventHandler } from 'react-native/Libraries/Types/CodegenT
import type { HostComponent, ViewProps } from 'react-native';

// stubs
interface NativeProps extends ViewProps {
export interface NativeProps extends ViewProps {
onDidSetViewID: BubblingEventHandler<{}>;
blurConfig: string;
animationConfig?: string;
Expand Down

0 comments on commit f199524

Please sign in to comment.