Merge pull request #1283 from laurent22/patch-1

Make seek() throw an exception when using NaN value
This commit is contained in:
Hampton Maxwell
2018-11-13 23:11:11 -08:00
committed by GitHub

View File

@@ -51,6 +51,8 @@ export default class Video extends Component {
}
seek = (time, tolerance = 100) => {
if (isNaN(time)) throw new Error('Specified time is not a number');
if (Platform.OS === 'ios') {
this.setNativeProps({
seek: {