Skip to content

Commit 4e01a3d

Browse files
committed
[ UPDATE ] readme
1 parent 2c27fef commit 4e01a3d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)