Please see Formbricks Docs. Specifically, Framework Guides.
Formbricks is your go-to solution for in-product micro-surveys that will supercharge your product experience! 🚀 For more information please check out formbricks.com.
- Install the Formbricks package inside your project using npm:
npm install @formbricks/react-native- Import Formbricks and initialize the widget in your main component (e.g., App.tsx or App.js):
import Formbricks, { track } from "@formbricks/react-native";
export default function App() {
return (
<View>
{/* Your app code */}
<Formbricks
appUrl="https://app.formbricks.com"
workspaceId="your-workspace-id"
/>
</View>
);
}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
environmentIdprop is still supported as a backward-compatible alias forworkspaceId, but it is deprecated and will be removed in a future major release. New integrations should useworkspaceId.
For more detailed guides for different frameworks, check out our Framework Guides.