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..c96eee3 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,9 +104,7 @@ 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). 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",