Files
formbricks/packages/react-native
dependabot[bot] 62c6189dfd chore(deps-dev): bump the npm_and_yarn group across 9 directories with 1 update (#4639)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-22 21:09:12 +00:00
..
2024-08-23 12:43:49 +02:00
2024-08-23 12:43:49 +02:00
2024-08-23 12:43:49 +02:00
2024-10-31 08:23:57 +00:00
2024-08-23 12:43:49 +02:00

Formbricks React Native SDK

npm package MIT License

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

  1. Install the Formbricks package inside your project using npm:
npm install @formbricks/react-native
  1. 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() {
  const config = {
    environmentId: "your-environment-id",
    apiHost: "https://app.formbricks.com",
    userId: "hello-user", // optional
    attributes: {
      // optional
      plan: "free",
    },
  };

  return (
    <View>
      {/* Your app code */}
      <Formbricks initConfig={config} />
    </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.

For more detailed guides for different frameworks, check out our Framework Guides.