Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ export default function App() {
{/* Your app code */}
<Formbricks
appUrl="https://app.formbricks.com"
environmentId="your-environment-id"
workspaceId="your-workspace-id"
/>
</View>
);
}
```

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).
2 changes: 1 addition & 1 deletion apps/playground/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
EXPO_PUBLIC_APP_URL=http://192.168.0.197:3000
EXPO_PUBLIC_FORMBRICKS_ENVIRONMENT_ID=cm5p0cs7r000819182b32j0a1
EXPO_PUBLIC_FORMBRICKS_WORKSPACE_ID=cm5p0cs7r000819182b32j0a1
8 changes: 3 additions & 5 deletions apps/playground/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -104,9 +104,7 @@ export default function App(): JSX.Element {

<Formbricks
appUrl={process.env.EXPO_PUBLIC_APP_URL as string}
environmentId={
process.env.EXPO_PUBLIC_FORMBRICKS_ENVIRONMENT_ID as string
}
workspaceId={process.env.EXPO_PUBLIC_FORMBRICKS_WORKSPACE_ID as string}
/>
</View>
);
Expand Down
6 changes: 4 additions & 2 deletions packages/react-native/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ export default function App() {
{/* Your app code */}
<Formbricks
appUrl="https://app.formbricks.com"
environmentId="your-environment-id"
workspaceId="your-workspace-id"
/>
</View>
);
}
```

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).
2 changes: 1 addition & 1 deletion packages/react-native/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading