Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 1.12 KB

install.md

File metadata and controls

38 lines (31 loc) · 1.12 KB

Expo installation

This package cannot be used in the "Expo Go" app because it requires custom native code.

First install the package with yarn, npm, or with expo-cli.

expo install react-native-crisp-chat-sdk expo-build-properties

expo-build-properties is needed to set ios deploymentTarget to 13.0 which is the minimum version required by crisp sdk

After installing this npm package, add the two config plugins to the plugins array of your app.json or app.config.js:

{
  "expo": {
    "plugins": [
      [
        "expo-build-properties",
        {
          "ios": {
            "deploymentTarget": "13.0"
          }
        }
      ],
      [
        "react-native-crisp-chat-sdk",
        {
          "websiteId": "YOUR_WEBSITE_ID"
        }
      ]
    ]
  }
}

Next, rebuild your app as described in the "Adding custom native code" guide.