Skip to content

Commit 411eb32

Browse files
committed
update readme
1 parent 631fb3b commit 411eb32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ import RNRK from 'react-native-replaykit'
3131
3232
RNRK.initialize() // you need to call this before using RNRK and only once during app's life.
3333
34-
RNRK.startRecording() // starts the recording
34+
RNRK.startRecording((recordings, error) => console.log(recordings)) // starts the recording
3535
36-
RNRK.stopRecording() // stops the recording and saves it <- Same as pressing Stop in blue bar up top
36+
RNRK.stopRecording(recordings => console.log(recordings)) // stops the recording and saves it <- Same as pressing Stop in blue bar up top
3737
3838
RKRK.getRecordings(recordings => console.log(recordings)) get all recordings stored in the app's Documents/Replays folder.
3939

0 commit comments

Comments
 (0)