Skip to content

Commit e0fbf4d

Browse files
committed
update readme
1 parent d33d9f1 commit e0fbf4d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@
1414
```
1515
import RNRK from 'react-native-replaykit'
1616
17+
RNRK.startRecording() // starts the recording
18+
19+
RNRK.stopRecording() // stops the recording and opens the preview/edit modal <- same as tapping top blue stop bar
20+
1721
RKRK.getRecordings(recordings => console.log(recordings)) get all recordings stored in the app's Documents/Replays folder.
1822
23+
RNRK.previewRecording(path) // open a recording for trimming in the native editor.. save will replace the file, cancel just dismiss the editor.
24+
1925
```
2026

2127
### Manual installation

0 commit comments

Comments
 (0)