Skip to content

Commit 0a4684f

Browse files
committed
added config option to be passed into initialize. showOverlay is the only option
1 parent 9309544 commit 0a4684f

File tree

3 files changed

+9
-6231
lines changed

3 files changed

+9
-6231
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ Create a swift file in your main project (if anyone knows a better way to get th
2828
```
2929
import RNRK from 'react-native-replaykit'
3030
31-
RNRK.initialize() // you need to call this before using RNRK and only once during app's life.
31+
RNRK.initialize({
32+
showOverlay: true // you must pass true or false for this option. It determines if a blue overlay will show up at the top of the screen that will indicate recording but not show up in the actual screen recording.
33+
}) // you need to call this before using RNRK and only once during app's life.
3234
3335
RNRK.startRecording((recordings, error) => console.log(recordings)) // starts the recording. The callback is fired when the recording is completed.
3436

0 commit comments

Comments
 (0)