Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into moar-docs-screenshare
Browse files Browse the repository at this point in the history
  • Loading branch information
mironiasty committed Sep 23, 2024
2 parents 0a6483d + bd251b4 commit 7b23aa9
Showing 1 changed file with 40 additions and 4 deletions.
44 changes: 40 additions & 4 deletions guide/react-native/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ How to install package in your mobile app
## Optional: Create new App

<details>
<summary>Follow these steps to create new mobile app</summary>
<summary>Follow these steps to create a new mobile app</summary>

If you don't have an existing project, you can create a new Expo app using a template

```bash
npx create-expo-app@latest my-video-app
```

As next step, you have to generate native files with `expo prepare` command:
As the next step, you have to generate native files with `expo prepare` command:

```bash
npx expo prebuild
Expand All @@ -40,7 +40,7 @@ npm install @fishjam-cloud/react-native-client

## Step 2: Configure App permissions

Your app will need to have configured permissions to use microphone and camera in order to work.
Your app must have permissions configured to use the microphone and camera.

### Android

Expand Down Expand Up @@ -92,4 +92,40 @@ You need to modify `AndroidManifest.xml` file, and these lines:

### iOS

No action is required for iOS
<Tabs groupId="app-type">

<TabItem value="expo" label="Expo">

You don't have to make any changes to run app on iOS.
To update default content of permission alert, you can add these settings to `app.json`:

```json
{
"expo": {
...
"ios": {
...
"infoPlist": {
"NSCameraUsageDescription": "Your message.",
"NSMicrophoneUsageDescription": "Your message"
}
},
}
}
```

</TabItem>
<TabItem value="rn" label="Bare workflow">

You need to make sure that `info.plist` contain these entries:

```xml
<key>NSCameraUsageDescription</key>
<string>Allow $(PRODUCT_NAME) to access your camera.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Allow $(PRODUCT_NAME) to access your microphone</string>

```

</TabItem>
</Tabs>

0 comments on commit 7b23aa9

Please sign in to comment.