react-native-video
Advanced tools
Comparing version
{ | ||
"name": "react-native-video", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "A <Video /> element for react-native", | ||
@@ -5,0 +5,0 @@ "main": "Video.ios.js", |
@@ -70,4 +70,8 @@ var React = require('react-native'); | ||
var source = this.props.source; | ||
var isNetwork = !!(source.uri && source.uri.match(/^https?:/)); | ||
var isAsset = !!(source.uri && source.uri.match(/^assets-library:/)); | ||
var uri = source.uri; | ||
if (uri && uri.match(/^\//)) { | ||
uri = 'file://' + uri; | ||
} | ||
var isNetwork = !!(uri && uri.match(/^https?:/)); | ||
var isAsset = !!(uri && uri.match(/^(assets-library|file):/)); | ||
@@ -89,3 +93,3 @@ var resizeMode; | ||
src: { | ||
uri: source.uri, | ||
uri: uri, | ||
isNetwork, | ||
@@ -92,0 +96,0 @@ isAsset, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
48043
10.65%126
3.28%