Skip to content

Commit

Permalink
Merge pull request #168 from ayuleul/master
Browse files Browse the repository at this point in the history
fix RCTVIEW [{flexGrow:<<Nan>>}] is not usable as a native method argument #126 issue
  • Loading branch information
Corné Dorrestijn authored Oct 18, 2022
2 parents e383468 + d850a36 commit b7702dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default class VideoPlayer extends Component {
duration: 0,
isSeeking: false,
};

this.seekBarWidth = 200;
this.wasPlayingBeforeSeek = props.autoplay;
this.seekTouchStart = 0;
Expand Down Expand Up @@ -446,7 +446,7 @@ export default class VideoPlayer extends Component {
>
<View
style={[
{ flexGrow: this.state.progress },
this.state.progress && {flexGrow: this.state.progress },
styles.seekBarProgress,
customStyles.seekBarProgress,
]}
Expand All @@ -470,7 +470,7 @@ export default class VideoPlayer extends Component {
) : null }
<View style={[
styles.seekBarBackground,
{ flexGrow: 1 - this.state.progress },
this.state.progress && { flexGrow: 1 - this.state.progress },
customStyles.seekBarBackground,
]} />
</View>
Expand Down

0 comments on commit b7702dc

Please sign in to comment.