react-native-video-ui-controls
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

react-native-video-ui-controls

A simple video controls build on top of react-native-video

Demo

1 2 3
1 2 3

Usage

import React from 'react';
import {Platform, View} from 'react-native';
import Video from 'react-native-video-ui-controls';

const component = (props: any) => {
    const {name, source} = props.route.params;

    return (
        <View style={{flex: 1}}>
            <Video
                name={name}
                source={source}
                onBackPress={() => {
                    props.navigation.goBack();
                }}
                isFullscreen={Platform.OS === 'ios'}
            />
        </View>
    );
};

export default component;

Package Sidebar

Install

npm i react-native-video-ui-controls

Weekly Downloads

23

Version

0.0.6

License

MIT

Unpacked Size

69 kB

Total Files

38

Last publish

Collaborators

  • polyglot-vemarav