Skip to content

Commit e1f8ca7

Browse files
committed
renamed to initialize
1 parent d51186c commit e1f8ca7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Create a swift file in your main project (if anyone knows a better way to get th
2929
```
3030
import 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+
3234
RNRK.startRecording() // starts the recording
3335
3436
RNRK.stopRecording() // stops the recording and saves it <- Same as pressing Stop in blue bar up top

ios/RNReactNativeReplaykit.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)