From 10930379e8ef0a4da742eb7b7cf26378131f3676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1=20C=C6=B0=E1=BB=9Dng?= <35923220+prohamburger@users.noreply.github.com> Date: Fri, 2 Jun 2023 16:07:00 +0700 Subject: [PATCH 1/2] Update index.js --- index.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 513f4e3..0d3ee35 100644 --- a/index.js +++ b/index.js @@ -405,12 +405,12 @@ export default class VideoPlayer extends Component { renderStartButton() { const { customStyles } = this.props; return ( - - - + + + ); } @@ -427,7 +427,7 @@ export default class VideoPlayer extends Component { ]} source={thumbnail} > - {this.renderStartButton()} + {this.props.customStartButton ? this.props.customStartButton() : this.renderStartButton()} ); } From 5bc4777d400742faef4c8d0b04cbd3f32ec19763 Mon Sep 17 00:00:00 2001 From: prohamburger Date: Fri, 2 Jun 2023 16:51:36 +0700 Subject: [PATCH 2/2] # --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 0d3ee35..5edeb2c 100644 --- a/index.js +++ b/index.js @@ -427,7 +427,7 @@ export default class VideoPlayer extends Component { ]} source={thumbnail} > - {this.props.customStartButton ? this.props.customStartButton() : this.renderStartButton()} + {this.props.customStartButton ? this.props.customStartButton(this.onStartPress) : this.renderStartButton()} ); }