You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# work in progress, breaking changes inbound - WIP
4
+
5
+
# MIT Licence (See Licences folder)
3
6
4
7
## Getting started
5
8
@@ -9,24 +12,8 @@
9
12
10
13
`$ react-native link react-native-replaykit`
11
14
12
-
### Usage
13
-
14
-
```
15
-
import RNRK from 'react-native-replaykit'
16
-
17
-
RNRK.startRecording() // starts the recording
18
-
19
-
RNRK.stopRecording() // stops the recording and saves it <- Same as pressing Stop in blue bar up top
20
-
21
-
RKRK.getRecordings(recordings => console.log(recordings)) get all recordings stored in the app's Documents/Replays folder.
22
-
23
-
RNRK.previewRecording(path) // open a recording for trimming in the native editor.. save will replace the file, cancel just dismiss the editor.
24
-
25
-
```
26
-
27
15
### Manual installation
28
16
29
-
30
17
#### iOS
31
18
32
19
1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
@@ -39,11 +26,25 @@ RNRK.previewRecording(path) // open a recording for trimming in the native edito
39
26
Create a swift file in your main project (if anyone knows a better way to get the auto generated swift build settings to show up, plese open an issue). If you delete this swift file or bridging header, the build settings needed will go away and build fail. 'Objecttive-C Generated Interface Header Name'.
0 commit comments