mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-05 05:36:17 +00:00
Automaticall refresh current time
This commit is contained in:
@@ -20,6 +20,7 @@ export const useEvent = <Event extends keyof OmniEvents>(
|
||||
}, [player, event, callback]);
|
||||
};
|
||||
|
||||
// export const usePlayerState = (key: "progress", refresh?: number): OmniPlayerState["progress"];
|
||||
export const usePlayerState = <Key extends keyof OmniPlayerState>(
|
||||
key: Key,
|
||||
): OmniPlayerState[Key] => {
|
||||
|
||||
Reference in New Issue
Block a user