@hyext-beyond/hy-ui-native
Version:
A native lib polyfill for huya miniapp
16 lines (13 loc) • 559 B
JavaScript
import { createAnimated } from "./common";
import { hyRequireNativeComponent } from "../../common/require";
// 双通道
export var VideoAnimated = createAnimated(hyRequireNativeComponent('HYRNVideoAnimation'));
// vap
export var VapVideoAnimated = createAnimated(hyRequireNativeComponent('HYRNVideoAnimation'));
// 普通mp4
export var NormalVideoAnimated = createAnimated(hyRequireNativeComponent('HYRNNormalVideoView'));
export default {
VideoAnimated: VideoAnimated,
VapVideoAnimated: VapVideoAnimated,
NormalVideoAnimated: NormalVideoAnimated
};