@frigade/react-native v1.0.51
@frigade/react-native
The official React Native SDK for Frigade.
Installation
Install the package with either npm or yarn:
npm install @frigade/react-nativeor
yarn add @frigade/react-nativeQuick start
Place the FrigadeProvider at the root level of your app. This will provide the context for the Frigade component.
If available, you can optionally set the identifier of the signed in user using the userId param. This will allow
Frigade to track the user's across flows.
import {FrigadeProvider} from '@frigade/react-native';
const App = () => {
return (
<FrigadeProvider publicApiKey='<MY_PUBLIC_API_KEY>'
userId='<OPTIONAL_USER_ID>'>
...
</FrigadeProvider>
);
};With the FrigadeProvider in place, you can now use the FrigadeFlow component to render a flow. Make sure to pass
the flowId of the flow you want to render (copied from the Frigade dashboard).
import {FrigadeFlow} from '@frigade/react-native';
const App = () => {
return (
<FrigadeFlow flowId='flow_6EoJIzZlOmCACn'/>
);
};Docs
The official docs are available at docs.frigade.com.
Get in touch
Questions? Comments? Suggestions? Join the Frigade Discord or visit the Frigade website.
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago