Skip to content

Commit

Permalink
added config option to be passed into initialize. showOverlay is the …
Browse files Browse the repository at this point in the history
…only option
  • Loading branch information
code-matt committed May 11, 2019
1 parent 9309544 commit 0a4684f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6,231 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ Create a swift file in your main project (if anyone knows a better way to get th
```
import RNRK from 'react-native-replaykit'
RNRK.initialize() // you need to call this before using RNRK and only once during app's life.
RNRK.initialize({
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.
}) // you need to call this before using RNRK and only once during app's life.
RNRK.startRecording((recordings, error) => console.log(recordings)) // starts the recording. The callback is fired when the recording is completed.
Expand Down
Loading

0 comments on commit 0a4684f

Please sign in to comment.