Skip to content

Commit 0740e1b

Browse files
Update readme with instructions for react-native link and cocoapods
1 parent c5db434 commit 0740e1b

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

readme.md

+16-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ React Native wrapper for [Lookback](https://lookback.io/).
66
## Setup
77

88
```
9-
npm install --save react-native-lookback@1.0.0
9+
npm install --save react-native-lookback
1010
```
1111

1212
### iOS
@@ -17,16 +17,26 @@ npm install --save react-native-lookback@1.0.0
1717
react-native link react-native-lookback
1818
```
1919

20-
#### Cocoapods
20+
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!
2121

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
2323

2424
Add the following to your Podfile:
2525

2626
```
2727
pod "Lookback"
2828
```
2929

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+
3040
#### Manual
3141

3242
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:
4757

4858
```
4959
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.
5463
});
5564
```
5665

0 commit comments

Comments
 (0)