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