File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ Create a swift file in your main project (if anyone knows a better way to get th
2929```
3030import RNRK from 'react-native-replaykit'
3131
32+ RNRK.initialize() // you need to call this before using RNRK and only once during app's life.
33+
3234RNRK.startRecording() // starts the recording
3335
3436RNRK.stopRecording() // stops the recording and saves it <- Same as pressing Stop in blue bar up top
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ - (dispatch_queue_t)methodQueue
1313 return dispatch_get_main_queue ();
1414}
1515
16- RCT_EXPORT_METHOD (initt )
16+ RCT_EXPORT_METHOD (initialize )
1717{
1818 self.screenRecordCoordinator = [[ScreenRecordCoordinator alloc ] init ];
1919}
You can’t perform that action at this time.
0 commit comments