Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 34067da

Browse files
authored
Import Text and add hideCurrentTime prop
1 parent 21db6b7 commit 34067da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Component } from 'react';
22
import PropTypes from 'prop-types';
3-
import { Image, ImageBackground, Platform, StyleSheet, TouchableOpacity, View, ViewPropTypes} from 'react-native';
3+
import { Image, ImageBackground, Platform, StyleSheet, TouchableOpacity, View, Text, ViewPropTypes} from 'react-native';
44
import Icon from 'react-native-vector-icons/MaterialIcons';
55
import Video from 'react-native-video'; // eslint-disable-line
66

@@ -484,7 +484,7 @@ export default class VideoPlayer extends Component {
484484
/>
485485
</TouchableOpacity>
486486
{this.renderSeekBar()}
487-
{
487+
{this.props.hideCurrentTime ? null :
488488
<Text style={styles.timeSyle}>
489489
{this.formatTime(this.state.currentTime)}
490490
</Text>

0 commit comments

Comments
 (0)