From 3848223c75cec0b63ab1dc5dbfbd941fed22966b Mon Sep 17 00:00:00 2001 From: pandeymangg Date: Wed, 27 May 2026 12:42:39 +0530 Subject: [PATCH 1/3] bumps sdk version for major release --- packages/react-native/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 3cc1732..c6e0a45 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@formbricks/react-native", - "version": "2.4.0", + "version": "3.0.0", "license": "MIT", "description": "Formbricks React Native SDK allows you to connect your app to Formbricks, display surveys and trigger events.", "homepage": "https://formbricks.com", From 66ad9964f673acc6487225cb6dd886ca00a43603 Mon Sep 17 00:00:00 2001 From: pandeymangg Date: Wed, 27 May 2026 12:54:42 +0530 Subject: [PATCH 2/3] updates readme and playground --- README.md | 6 ++++-- apps/playground/.env.example | 2 +- apps/playground/src/app.tsx | 8 ++++---- packages/react-native/README.md | 6 ++++-- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4c3c448..4f48f97 100644 --- a/README.md +++ b/README.md @@ -29,13 +29,15 @@ export default function App() { {/* Your app code */} ); } ``` -Replace your-environment-id with your actual environment ID. You can find your environment ID in the **Connections instructions** in the Formbricks **Configuration** pages. +Replace your-workspace-id with your actual workspace ID. You can find your workspace ID in the **Connections instructions** in the Formbricks **Configuration** pages. + +> **Note:** The `environmentId` prop is still supported as a backward-compatible alias for `workspaceId`, but it is deprecated and will be removed in a future major release. New integrations should use `workspaceId`. For more detailed guides for different frameworks, check out our [Framework Guides](https://formbricks.com/docs/getting-started/framework-guides). diff --git a/apps/playground/.env.example b/apps/playground/.env.example index 340aecb..87c10f1 100644 --- a/apps/playground/.env.example +++ b/apps/playground/.env.example @@ -1,2 +1,2 @@ EXPO_PUBLIC_APP_URL=http://192.168.0.197:3000 -EXPO_PUBLIC_FORMBRICKS_ENVIRONMENT_ID=cm5p0cs7r000819182b32j0a1 \ No newline at end of file +EXPO_PUBLIC_FORMBRICKS_WORKSPACE_ID=cm5p0cs7r000819182b32j0a1 \ No newline at end of file diff --git a/apps/playground/src/app.tsx b/apps/playground/src/app.tsx index e770d16..20cb721 100644 --- a/apps/playground/src/app.tsx +++ b/apps/playground/src/app.tsx @@ -13,8 +13,8 @@ import { Button, LogBox, StyleSheet, Text, View } from "react-native"; LogBox.ignoreAllLogs(); export default function App(): JSX.Element { - if (!process.env.EXPO_PUBLIC_FORMBRICKS_ENVIRONMENT_ID) { - throw new Error("EXPO_PUBLIC_FORMBRICKS_ENVIRONMENT_ID is required"); + if (!process.env.EXPO_PUBLIC_FORMBRICKS_WORKSPACE_ID) { + throw new Error("EXPO_PUBLIC_FORMBRICKS_WORKSPACE_ID is required"); } if (!process.env.EXPO_PUBLIC_APP_URL) { @@ -104,8 +104,8 @@ export default function App(): JSX.Element { diff --git a/packages/react-native/README.md b/packages/react-native/README.md index 4c3c448..4f48f97 100644 --- a/packages/react-native/README.md +++ b/packages/react-native/README.md @@ -29,13 +29,15 @@ export default function App() { {/* Your app code */} ); } ``` -Replace your-environment-id with your actual environment ID. You can find your environment ID in the **Connections instructions** in the Formbricks **Configuration** pages. +Replace your-workspace-id with your actual workspace ID. You can find your workspace ID in the **Connections instructions** in the Formbricks **Configuration** pages. + +> **Note:** The `environmentId` prop is still supported as a backward-compatible alias for `workspaceId`, but it is deprecated and will be removed in a future major release. New integrations should use `workspaceId`. For more detailed guides for different frameworks, check out our [Framework Guides](https://formbricks.com/docs/getting-started/framework-guides). From acbf82964de29ea34bbdc7fd4e0d8403b7963388 Mon Sep 17 00:00:00 2001 From: pandeymangg Date: Wed, 27 May 2026 13:02:05 +0530 Subject: [PATCH 3/3] fix lint --- apps/playground/src/app.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/playground/src/app.tsx b/apps/playground/src/app.tsx index 20cb721..c96eee3 100644 --- a/apps/playground/src/app.tsx +++ b/apps/playground/src/app.tsx @@ -104,9 +104,7 @@ export default function App(): JSX.Element { );