DefinitelyTyped/types/react-native-video/react-native-video-tests.tsx
2017-06-21 09:48:37 +02:00

27 lines
474 B
TypeScript

import * as React from 'react';
import {
StyleSheet,
Text,
View,
ViewStyle
} from 'react-native';
import Video from 'react-native-video';
class SwiperTest extends React.Component {
constructor(props: {}) {
super(props);
}
render(): React.ReactElement<any> {
return (
<Video source={{uri: '//:example.com/test.mp4'}}/>
);
}
}
const styles = StyleSheet.create({
wrapper: {
flex: 1,
},
});