@formbricks/react-native
v3.0.1
Published
Formbricks React Native SDK allows you to connect your app to Formbricks, display surveys and trigger events.
Downloads
1,820
Readme
Formbricks React Native SDK
Please see Formbricks Docs. Specifically, Framework Guides.
What is Formbricks
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.
How to use this library
- 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.
