mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-16 02:44:51 +00:00
Create types for player & view
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import type { HybridObject } from "react-native-nitro-modules";
|
||||
import type { OmniPlayer as OmniPlayerT } from "../types/player";
|
||||
import type { OmniPlayerProps as OmniPlayerPropsT } from "../types/provider";
|
||||
|
||||
export interface OmniPlayerProps
|
||||
extends HybridObject<{ android: "kotlin" }>,
|
||||
OmniPlayerPropsT {}
|
||||
|
||||
export interface OmniPlayer
|
||||
extends HybridObject<{ android: "kotlin" }>,
|
||||
OmniPlayerT {}
|
||||
|
||||
export interface OmniPlayerFactory extends HybridObject<{ android: "kotlin" }> {
|
||||
createPlayer(props: OmniPlayerProps): OmniPlayer;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import type {
|
||||
HybridView,
|
||||
HybridViewMethods,
|
||||
HybridViewProps,
|
||||
} from "react-native-nitro-modules";
|
||||
import type { OmniViewProps } from "../types/view";
|
||||
|
||||
export interface Props extends HybridViewProps, OmniViewProps {}
|
||||
|
||||
export type OmniView = HybridView<
|
||||
Props,
|
||||
HybridViewMethods,
|
||||
{ android: "kotlin" }
|
||||
>;
|
||||
@@ -1,13 +0,0 @@
|
||||
import type {
|
||||
HybridView,
|
||||
HybridViewMethods,
|
||||
HybridViewProps,
|
||||
} from "react-native-nitro-modules";
|
||||
|
||||
export interface OmniProps extends HybridViewProps {
|
||||
isRed: boolean;
|
||||
}
|
||||
|
||||
export interface OmniMethods extends HybridViewMethods {}
|
||||
|
||||
export type Omni = HybridView<OmniProps, OmniMethods, { android: "kotlin" }>;
|
||||
Reference in New Issue
Block a user