1.1.0 • Published 10 months ago

@formbricks/react-native v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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",
    attributes: {
      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. Please make sure to pass a unique user identifier as userId to the Formbricks SDK (e.g. database id, email address).

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

1.1.0

10 months ago

1.0.0

11 months ago

1.0.0-beta.4

11 months ago

1.0.0-beta.3

11 months ago

1.0.0-beta.2

11 months ago

1.0.0-beta.1

11 months ago

1.0.0-beta.0

11 months ago