File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -90,23 +90,24 @@ var doubanbook = React.createClass({
9090 TorrentStreamer.start('magnet:?xt=urn:btih:D60795899F8488E7E489BA642DEFBCE1B23C9DA0&dn=Kingsman%3A+The+Secret+Service+%282014%29+%5B720p%5D&tr=http%3A%2F%2Ftracker.yify-torrents.com%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.org%3A80&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Fp4p.arenabg.ch%3A1337&tr=udp%3A%2F%2Fp4p.arenabg.com%3A1337')
9191 },
9292
93- buttonClicked : function() {
94- TorrentStreamer.prepare ()
93+ stop : function() {
94+ TorrentStreamer.stop ()
9595 },
9696
9797 render: function() {
9898 return (
9999 <View style={styles.container}>
100+
100101 <TouchableHighlight
101102 style={styles.button}
102- onPress={this.buttonClicked }>
103- <Text >Prepare !</Text>
103+ onPress={this.start }>
104+ <Text >Start Torrent !</Text>
104105 </TouchableHighlight>
105106
106107 <TouchableHighlight
107108 style={styles.button}
108- onPress={this.start }>
109- <Text >Start Torrent!</Text>
109+ onPress={this.stop }>
110+ <Text >Stop Torrent!</Text>
110111 </TouchableHighlight>
111112
112113 </View>
You can’t perform that action at this time.
0 commit comments