From 25628d9877553ee3be56d819c96a94c0a5dfbaf3 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Sat, 11 Apr 2015 14:38:42 -0700 Subject: [PATCH] Bump version for onEnd callback --- .gitignore | 1 + Examples/VideoPlayer/index.ios.js | 2 ++ Examples/VideoPlayer/package.json | 2 +- README.md | 5 +++-- package.json | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 73b4b410..50ca7536 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/**/* RCTVideo.xcodeproj/xcuserdata/**/* RCTVideo.xcodeproj/project.xcworkspace/**/* +Examples/VideoPlayer/node_modules/**/* diff --git a/Examples/VideoPlayer/index.ios.js b/Examples/VideoPlayer/index.ios.js index e8a51beb..22ab82f3 100644 --- a/Examples/VideoPlayer/index.ios.js +++ b/Examples/VideoPlayer/index.ios.js @@ -11,6 +11,7 @@ var { Text, View, TouchableOpacity, + AlertIOS, } = React; var Video = require('react-native-video'); @@ -95,6 +96,7 @@ var VideoPlayer = React.createClass({ resizeMode={this.state.resizeMode} onLoad={this.onLoad} onProgress={this.onProgress} + onEnd={() => { AlertIOS.alert('Done!') }} repeat={true} /> diff --git a/Examples/VideoPlayer/package.json b/Examples/VideoPlayer/package.json index effed242..29851af7 100644 --- a/Examples/VideoPlayer/package.json +++ b/Examples/VideoPlayer/package.json @@ -7,6 +7,6 @@ }, "dependencies": { "react-native": "0.3.10", - "react-native-video": "^0.2.6" + "react-native-video": "^0.2.7" } } diff --git a/README.md b/README.md index 7d5986c2..b78ccd71 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,9 @@ A