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
Unfortunately, after running the `react-native link` command, you will also need to add the Lookback pod by following the instructions in the Cocoapods section. I'm working on making `react-native link` a one-stop solution, PRs welcome!
21
21
22
-
TODO(mark): When adding `react-native-lookback` to Cocoapods and referencing `node_modules`, the package can't find the header files for Lookback itself :( If anyone knows how to fix this, I would gladly accept your PR!
22
+
#### Cocoapods
23
23
24
24
Add the following to your Podfile:
25
25
26
26
```
27
27
pod "Lookback"
28
28
```
29
29
30
+
Then run:
31
+
32
+
```
33
+
pod install
34
+
```
35
+
36
+
You're done! :tada:
37
+
38
+
TODO(mark): When adding `react-native-lookback` to Cocoapods and referencing `node_modules`, the package can't find the header files for Lookback itself :( If anyone knows how to fix this, I would gladly accept your PR!
39
+
30
40
#### Manual
31
41
32
42
Inside your xcode project file, right click on your "Libraries" folder and select "Add files to MyApp". Navigate to `node_modules/react-native-lookback/ios/RNLookback.xcodeproj` and add that to your project. Then select your app's project file on the sidebar, scroll down to "Linked Frameworks and Libraries" and add `libRNLookback.a` to this list.
@@ -47,10 +57,9 @@ Start Recording:
47
57
48
58
```
49
59
Lookback.startRecordingWithOptions({
50
-
// Options:
51
-
// showPreview: false, // When true, will show the Lookback interface for the user to watch / upload the recording.
52
-
// cameraEnabled: false, // When true, will record the user using the front facing camera.
53
-
// microphoneEnabled: false, // When true, will record audio with the recording.
60
+
showPreview: true, // When true, will show the Lookback interface for the user to watch / upload the recording.
61
+
cameraEnabled: true, // When true, will record the user using the front facing camera.
62
+
microphoneEnabled: true, // When true, will record audio with the recording.
0 commit comments