Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

docs: Update react native Installation docs (#297)

Kien Ngo4b9852b36fed
diff --git a/apps/public/content/docs/(tracking)/sdks/react-native.mdx b/apps/public/content/docs/(tracking)/sdks/react-native.mdx
index aadf014fc..8712c4f68 100644
--- a/apps/public/content/docs/(tracking)/sdks/react-native.mdx
+++ b/apps/public/content/docs/(tracking)/sdks/react-native.mdx
@@ -32,7 +32,9 @@ npx expo install expo-application expo-constants
On native we use a clientSecret to authenticate the app.
```typescript
-const op = new Openpanel({
+import { OpenPanel } from '@openpanel/react-native';
+
+const op = new OpenPanel({
clientId: '{YOUR_CLIENT_ID}',
clientSecret: '{YOUR_CLIENT_SECRET}',
});