mirror of
https://github.com/zhigang1992/react-native-hold-menu.git
synced 2026-06-15 18:38:03 +08:00
20 lines
326 B
TypeScript
20 lines
326 B
TypeScript
import React from 'react';
|
|
|
|
const Video = ({ title, url }) => {
|
|
return (
|
|
<video
|
|
muted={true}
|
|
loop={true}
|
|
autoPlay={true}
|
|
controls={false}
|
|
playsInline={true}
|
|
title={title}
|
|
width="100%"
|
|
>
|
|
<source src={url} type="video/mp4" />
|
|
</video>
|
|
);
|
|
};
|
|
|
|
export default Video;
|