appgram / docs
Dashboard

REACT NATIVE SDK

React Native SDK

Native mobile components and hooks for React Native apps on iOS and Android.

Install
npm install @appgram/[email protected]
npm install @react-native-async-storage/async-storage lucide-react-native react-native-svg react-native-markdown-display react-native-render-html
Quickstart
import React from 'react';
import { SafeAreaView } from 'react-native';
import { AppgramProvider, WishList } from '@appgram/react-native';

export default function App() {
  return (
    <AppgramProvider config={{
      projectId: 'YOUR_PROJECT_ID',
      orgSlug: 'your-org',
      projectSlug: 'your-project',
    }}>
      <SafeAreaView style={{ flex: 1 }}>
        <WishList />
      </SafeAreaView>
    </AppgramProvider>
  );
}
964 symbols122 categoriestsx

Classes

Methods

constructor→ AppgramClient
  • config: AppgramClientConfig
addSupportMessage→ Promise<ApiResponse<SupportMessageResponse>>

Add a message to a support ticket

  • ticketId: string
  • token: string
  • contentOrData: string | SupportMessageInput
  • attachments: SupportUploadFile[]optional
checkVote→ Promise<ApiResponse<VoteCheckResponse>>

Check if a fingerprint has voted on a wish

  • wishId: string
  • fingerprint: string
createComment→ Promise<ApiResponse<Comment>>

Create a comment

  • data: object
createVote→ Promise<ApiResponse<object>>

Create a vote

  • wishId: string
  • fingerprint: string
  • voterEmail: stringoptional
createWish→ Promise<ApiResponse<Wish>>

Create a new wish (feature request)

  • data: object
deleteVote→ Promise<ApiResponse<object>>

Delete a vote

  • voteId: string
getBlogCategories→ Promise<ApiResponse<BlogCategory[]>>

Get blog categories

getBlogPost→ Promise<ApiResponse<BlogPost>>

Get a single blog post by slug

  • slug: string
getBlogPosts→ Promise<ApiResponse<BlogPostsResponse>>

Get public blog posts with optional filters

  • filters: BlogFiltersoptional
getBlogPostsByCategory→ Promise<ApiResponse<BlogPostsResponse>>

Get blog posts by category slug

  • categorySlug: string
  • options: objectoptional
getBlogPostsByTag→ Promise<ApiResponse<BlogPostsResponse>>

Get blog posts by tag

  • tag: string
  • options: objectoptional
getComments→ Promise<ApiResponse<CommentsResponse>>

Get comments for a wish

  • wishId: string
  • options: objectoptional
getFeaturedBlogPosts→ Promise<ApiResponse<BlogPost[]>>

Get featured blog posts

getForm→ Promise<ApiResponse<Form>>

Get a form by ID via portal endpoint

  • formId: string
getHelpArticle→ Promise<ApiResponse<HelpArticle>>

Get a help article by slug

  • slug: string
  • flowId: string
getHelpCollection→ Promise<ApiResponse<object>>

Get help center collection for the project

getHelpFlow→ Promise<ApiResponse<HelpFlow>>

Get a help flow by slug

  • slug: string
getPageData→ Promise<ApiResponse<object>>

Get all public page data in one request

getPublicStatusOverview→ Promise<ApiResponse<StatusPageOverview>>

Get public status page overview (services, active updates, overall status)

  • slug: stringoptional
getPublicSurvey→ Promise<ApiResponse<Survey & object>>

Get a public survey by slug

  • slug: string
getPublicSurveyCustomization→ Promise<ApiResponse<Record<string, unknown>>>

Get survey customization settings

  • surveyId: string
getPublicWishes→ Promise<ApiResponse<WishesResponse>>

Get public wishes for the project

  • filters: WishFiltersoptional
getRelatedBlogPosts→ Promise<ApiResponse<BlogPost[]>>

Get related blog posts for a given post

  • slug: string
getRelease→ Promise<ApiResponse<Release>>

Get a single release by slug

  • releaseSlug: string
getReleaseFeatures→ Promise<ApiResponse<ReleaseFeature[]>>

Get features for a release (public endpoint)

  • releaseSlug: string
getReleases→ Promise<ApiResponse<Release[]>>

Get public releases for the project

  • options: objectoptional
getRoadmapData→ Promise<ApiResponse<RoadmapData>>

Get roadmap data for the project

getSupportTicket→ Promise<ApiResponse<SupportRequest>>

Get a specific support ticket using magic link token

  • ticketId: string
  • token: string
getWish→ Promise<ApiResponse<Wish>>

Get a single wish by ID

  • wishId: string
searchBlogPosts→ Promise<ApiResponse<BlogPostsResponse>>

Search blog posts

  • query: string
  • options: objectoptional
sendSupportMagicLink→ Promise<ApiResponse<object>>

Request a magic link to access support tickets

  • userEmail: string
submitForm→ Promise<ApiResponse<FormSubmission>>

Submit a form

  • projectId: string
  • formId: string
  • data: FormSubmitInput
submitSupportRequest→ Promise<ApiResponse<SupportRequest>>

Submit a support request

  • data: SupportRequestInput
submitSurveyResponse→ Promise<ApiResponse<SurveyResponse>>

Submit a survey response

  • surveyId: string
  • data: SurveySubmitInput
trackFormView→ Promise<ApiResponse<object>>

Track a form view (call when form is displayed)

  • formId: string
uploadFile→ Promise<ApiResponse<object>>

Upload a file via public portal (no auth required)

  • file: SupportUploadFile
verifySupportToken→ Promise<ApiResponse<object>>

Verify magic link token and get user's support tickets

  • token: string

AppgramClient

Add a message to a support ticket

Parameters

ticketIdstring
tokenstring
contentOrDatastring | SupportMessageInput
attachmentsSupportUploadFile[]optional

Returns

Promise<ApiResponse<SupportMessageResponse>>

Check if a fingerprint has voted on a wish

Parameters

wishIdstring
fingerprintstring

Returns

Promise<ApiResponse<VoteCheckResponse>>

Parameters

configAppgramClientConfig

Returns

AppgramClient

Create a comment

Parameters

dataobject

Returns

Promise<ApiResponse<Comment>>

Create a vote

Parameters

wishIdstring
fingerprintstring
voterEmailstringoptional

Returns

Promise<ApiResponse<object>>

Create a new wish (feature request)

Parameters

dataobject

Returns

Promise<ApiResponse<Wish>>

Delete a vote

Parameters

voteIdstring

Returns

Promise<ApiResponse<object>>

Get blog categories

Returns

Promise<ApiResponse<BlogCategory[]>>

Get a single blog post by slug

Parameters

slugstring

Returns

Promise<ApiResponse<BlogPost>>

Get public blog posts with optional filters

Parameters

filtersBlogFiltersoptional

Returns

Promise<ApiResponse<BlogPostsResponse>>

Get blog posts by category slug

Parameters

categorySlugstring
optionsobjectoptional

Returns

Promise<ApiResponse<BlogPostsResponse>>

Get blog posts by tag

Parameters

tagstring
optionsobjectoptional

Returns

Promise<ApiResponse<BlogPostsResponse>>

Get comments for a wish

Parameters

wishIdstring
optionsobjectoptional

Returns

Promise<ApiResponse<CommentsResponse>>

Get a form by ID via portal endpoint

Parameters

formIdstring

Returns

Promise<ApiResponse<Form>>

Get a help article by slug

Parameters

slugstring
flowIdstring

Returns

Promise<ApiResponse<HelpArticle>>

Get help center collection for the project

Returns

Promise<ApiResponse<object>>

Get a help flow by slug

Parameters

slugstring

Returns

Promise<ApiResponse<HelpFlow>>

Get all public page data in one request

Returns

Promise<ApiResponse<object>>

Get public status page overview (services, active updates, overall status)

Parameters

slugstringoptional

Returns

Promise<ApiResponse<StatusPageOverview>>

Get a public survey by slug

Parameters

slugstring

Returns

Promise<ApiResponse<Survey & object>>

Get survey customization settings

Parameters

surveyIdstring

Returns

Promise<ApiResponse<Record<string, unknown>>>

Get public wishes for the project

Parameters

filtersWishFiltersoptional

Returns

Promise<ApiResponse<WishesResponse>>

Get related blog posts for a given post

Parameters

slugstring

Returns

Promise<ApiResponse<BlogPost[]>>

Get a single release by slug

Parameters

releaseSlugstring

Returns

Promise<ApiResponse<Release>>

Get features for a release (public endpoint)

Parameters

releaseSlugstring

Returns

Promise<ApiResponse<ReleaseFeature[]>>

Get public releases for the project

Parameters

optionsobjectoptional

Returns

Promise<ApiResponse<Release[]>>

Get roadmap data for the project

Returns

Promise<ApiResponse<RoadmapData>>

Get a specific support ticket using magic link token

Parameters

ticketIdstring
tokenstring

Returns

Promise<ApiResponse<SupportRequest>>

Get a single wish by ID

Parameters

wishIdstring

Returns

Promise<ApiResponse<Wish>>

Search blog posts

Parameters

querystring
optionsobjectoptional

Returns

Promise<ApiResponse<BlogPostsResponse>>

Submit a form

Parameters

projectIdstring
formIdstring
dataFormSubmitInput

Returns

Promise<ApiResponse<FormSubmission>>

Submit a support request

Parameters

dataSupportRequestInput

Returns

Promise<ApiResponse<SupportRequest>>

Submit a survey response

Parameters

surveyIdstring
dataSurveySubmitInput

Returns

Promise<ApiResponse<SurveyResponse>>

Track a form view (call when form is displayed)

Parameters

formIdstring

Returns

Promise<ApiResponse<object>>

Upload a file via public portal (no auth required)

Parameters

fileSupportUploadFile

Returns

Promise<ApiResponse<object>>

Verify magic link token and get user's support tickets

Parameters

tokenstring

Returns

Promise<ApiResponse<object>>

Interfaces

interface

ApiResponse

API Response wrapper

Properties

dataToptional
errorobjectoptional
successboolean

Properties

baseUrlstring
orgSlugstringoptional
projectIdstring
projectSlugstringoptional
interface

AppgramColors

Hazel Design System Colors for React Native Mobile-optimized color palette based on the Hazel design system.

Properties

accentstring
backgroundstring
borderstring
cardstring
cardForegroundstring
errorstring
errorSubtlestring
foregroundstring
infostring
infoSubtlestring
mutedstring
mutedForegroundstring
primarystring
secondarystring
successstring
successSubtlestring
warningstring
warningSubtlestring
interface

AppgramConfig

Appgram SDK configuration

Properties

apiUrlstringoptional

Custom API URL (defaults to https://api.appgram.dev)

enableFingerprintingbooleanoptional

Enable device fingerprinting for anonymous voting

orgSlugstringoptional

Organization slug for API routing

projectIdstring

Your Appgram project ID (required)

projectSlugstringoptional

Project slug for API routing

themeobjectoptional

Theme configuration

Props for AppgramProvider

Properties

childrenReactNode

Child components

configAppgramConfig

SDK configuration

interface

AppgramTheme

Complete theme object with colors, spacing, radius, and typography

Properties

colorsAppgramColors

Color palette

isDarkboolean

Whether dark mode is active

modeThemeMode

Current theme mode

radiusobject

Border radius scale (sm, md, lg, xl, full)

spacingobject

Spacing scale (xs, sm, md, lg, xl, 2xl)

typographyobject

Typography scale (xs, sm, base, lg, xl, 2xl, 3xl)

interface

BadgeProps

Properties

action"muted" | "success" | "warning" | "info" | "error"optional
childrenReactNode
size"sm" | "md" | "lg"optional
styleanyoptional
interface

BlogCardProps

Properties

isBookmarkedbooleanoptional
onBookmark(post: BlogPost) => voidoptional
onPress(post: BlogPost) => voidoptional
postBlogPost
styleanyoptional
variant"default" | "compact" | "large"optional
interface

BlogCategory

Blog/Resources Types

Properties

colorstring | nulloptional
descriptionstring | nulloptional
idstring
namestring
post_countnumberoptional
slugstring
interface

BlogFilters

Properties

category_slugstringoptional
is_featuredbooleanoptional
pagenumberoptional
per_pagenumberoptional
searchstringoptional
tagstringoptional
interface

BlogListProps

Properties

bookmarkedIdsstring[]optional
cardVariant"default" | "compact" | "large"optional
descriptionstringoptional
initialCategorystringoptional
initialSearchstringoptional
onBookmark(post: BlogPost) => voidoptional
onFilterPress() => voidoptional
onPostPress(post: BlogPost) => voidoptional
postsPerPagenumberoptional
renderEmpty() => ReactNodeoptional
renderError(error: string, retry: () => void) => ReactNodeoptional
renderLoading() => ReactNodeoptional
showCategoriesbooleanoptional
showSearchbooleanoptional
styleanyoptional
titlestringoptional
interface

BlogPost

Properties

author_namestring | nulloptional
categoryobjectoptional
category_idstring | nulloptional
contentstring
created_atstring
excerptstring | nulloptional
idstring
is_featuredboolean
meta_descriptionstring | nulloptional
og_image_urlstring | nulloptional
project_idstring
published_atstring
slugstring
tagsstring[]
titlestring
updated_atstring
view_countnumber

Properties

isBookmarkedbooleanoptional
onBookmark(post: BlogPost) => voidoptional
onRelatedPostPress(post: BlogPost) => voidoptional
postBlogPostoptional
postSlugstringoptional
renderError(error: string, retry: () => void) => ReactNodeoptional
renderLoading() => ReactNodeoptional
showRelatedPostsbooleanoptional
styleanyoptional

Properties

dataBlogPost[]
pagenumber
per_pagenumber
totalnumber
total_pagesnumber
interface

BlogProps

Properties

bookmarkedIdsstring[]optional
cardVariant"default" | "compact" | "large"optional
descriptionstringoptional
initialCategorystringoptional
initialSearchstringoptional
onBackToList() => voidoptional
onBookmark(post: BlogPost) => voidoptional
onFilterPress() => voidoptional
onPostView(post: BlogPost) => voidoptional
postsPerPagenumberoptional
renderEmpty() => ReactNodeoptional
renderError(error: string, retry: () => void) => ReactNodeoptional
renderLoading() => ReactNodeoptional
showCategoriesbooleanoptional
showRelatedPostsbooleanoptional
showSearchbooleanoptional
styleanyoptional
titlestringoptional
interface

ButtonProps

Properties

childrenReactNode
disabledbooleanoptional
loadingbooleanoptional
onPress() => void
size"sm" | "md" | "lg"optional
styleanyoptional
textStyleanyoptional
variant"solid" | "outline" | "ghost"optional
interface

CardProps

Properties

childrenReactNode
styleanyoptional
variant"default" | "elevated" | "outlined"optional
interface

Category

Properties

colorstring
descriptionstring | nulloptional
iconstring | nulloptional
idstring
namestring
slugstring
wish_countnumberoptional

Properties

accentColorstringoptional

Accent color override

agentNamestringoptional

Name of the chat agent

greetingstringoptional

Initial greeting message

onArticlePress(slug: string, source: ChatSource) => voidoptional

Callback when an article source is tapped. Provides the article slug and full source data for flexible routing.

onSupportPress() => voidoptional

Callback when support button is tapped

optionsQuickOption[]optional

Quick reply options shown initially

placeholderstringoptional

Input placeholder text

styleanyoptional

Custom style for container

subtitlestringoptional

Subtitle shown below greeting

interface

ChatSource

Properties

article_idstring
flow_idstringoptional
flow_slugstringoptional
similaritynumber
slugstring
titlestring
type"help_article" | "blog_post"optional

Source type - determines routing behavior

interface

Comment

Properties

author_avatar_urlstring | nulloptional
author_namestring
author_type"user" | "anonymous" | "team_member"
author_user_idstring | nulloptional
contentstring
created_atstring
idstring
is_deletedboolean
is_officialboolean
parent_idstring | nulloptional
repliesComment[]optional
reply_countnumber
updated_atstring
wish_idstring
interface

CommentAuthor

Comment Types

Properties

avatar_urlstring | nulloptional
namestring

Properties

author_emailstringoptional
author_namestringoptional
contentstring
parent_idstringoptional
wish_idstring

Properties

dataComment[]
pagenumber
per_pagenumber
totalnumber
total_pagesnumber
interface

Form

Properties

createdAtstringoptional
descriptionstringoptional
emailRecipientstring
emailSubjectstring
enabledboolean
fieldsFormField[]
idstring
integrationFormIntegrationoptional

Integration settings for form submission

namestring
submitButtonTextstring
successMessagestring
updatedAtstringoptional
interface

FormField

Properties

idstring
labelstring
optionsstring[]optional
placeholderstringoptional
requiredboolean
typeFormFieldType
validationFormFieldValidationoptional

Properties

descriptionstringoptional
formIdstring
onError(error: string) => voidoptional
onSuccess() => voidoptional
projectIdstringoptional
styleanyoptional
titlestringoptional

Properties

dataRecord<string, string | boolean>
form_idstring
idstring
project_idstring
submitted_atstring
interface

HelpArticle

Properties

article_typeArticleType
contentstring
created_atstring
excerptstring | nulloptional
flow_idstring
idstring
is_publishedboolean
published_atstring | nulloptional
slugstring
sort_ordernumber
titlestring
updated_atstring

Properties

articleHelpArticle
onPress(article: HelpArticle) => voidoptional
styleanyoptional

Properties

articleHelpArticle
contentContainerStyleanyoptional
styleanyoptional

Properties

contentContainerStyleanyoptional
descriptionstringoptional
emptyTextstringoptional
numColumnsnumberoptional
onFlowPress(flow: HelpFlow) => voidoptional
styleanyoptional
titlestringoptional

Properties

created_atstring
descriptionstring | nulloptional
flowsHelpFlow[]optional
idstring
is_liveboolean
namestring
project_idstring
updated_atstring
versionstring
interface

HelpFlow

Properties

articlesHelpArticle[]optional
collection_idstring
colorstring | nulloptional
created_atstring
descriptionstring | nulloptional
display_typeFlowDisplayType
iconstring | nulloptional
idstring
namestring
slugstring
sort_ordernumber
updated_atstring

Properties

flowHelpFlow
onPress(flow: HelpFlow) => voidoptional
styleanyoptional

Properties

contentContainerStyleanyoptional
emptyTextstringoptional
flowHelpFlow
onArticlePress(article: HelpArticle) => voidoptional
styleanyoptional
interface

InputProps

Related types

Omit<TextInputProps, "style">

Properties

containerStyleanyoptional
errorstringoptional
inputStyleanyoptional
labelstringoptional
labelStyleanyoptional

Paginated response wrapper

Properties

dataT[]
pagenumber
per_pagenumber
totalnumber
total_pagesnumber
interface

Release

Properties

author_user_idstring
contentstring
cover_image_urlstring | nulloptional
created_atstring
excerptstring | nulloptional
featuresReleaseFeature[]optional
idstring
is_publishedboolean
itemsReleaseItem[]optional
labelsstring[]
project_idstring
published_atstring | nulloptional
slugstring
titlestring
updated_atstring
versionstring | nulloptional
wish_idsstring[]

Properties

releaseReleaseoptional
releaseSlugstringoptional

Properties

descriptionstring
idstring
image_urlstring | nulloptional
release_idstring
sort_ordernumber
titlestring

Properties

descriptionstringoptional
limitnumberoptional
onReleasePress(release: Release) => voidoptional
titlestringoptional
interface

ReleasesProps

Properties

descriptionstringoptional
limitnumberoptional
onReleasePress(release: Release) => voidoptional
titlestringoptional

Properties

descriptionstringoptional
onItemPress(item: RoadmapItem) => voidoptional
showVoteCountsbooleanoptional
titlestringoptional
interface

RoadmapColumn

Properties

colorstring
created_atstring
idstring
itemsRoadmapItem[]optional
namestring
roadmap_idstring
sort_ordernumber
updated_atstring
wip_limitnumber | nulloptional
interface

RoadmapData

Properties

columnsRoadmapColumn[]
customizationobject | nulloptional
roadmapRoadmap | null
total_itemsnumber
interface

RoadmapItem

Properties

colorstring | nulloptional
column_idstring
comment_countnumberoptional
created_atstring
descriptionstring | nulloptional
idstring
roadmap_idstring
sort_ordernumber
target_datestring | nulloptional
titlestring
updated_atstring
vote_countnumberoptional
wishWish | nulloptional
wish_idstring | nulloptional

Properties

onIncidentPress(incidentId: string) => voidoptional
onSubscribe() => voidoptional
refreshIntervalnumberoptional
slugstringoptional
styleanyoptional
subtitlestringoptional
titlestringoptional
interface

StatusPage

Properties

created_atstring
descriptionstring | null
idstring
is_activeboolean
namestring
project_idstring
slugstring
updated_atstring

Properties

active_countnumber
active_updatesStatusUpdate[]
current_statusStatusType
recent_updatesStatusUpdate[]
resolved_countnumber
servicesStatusPageService[]
services_statusRecord<string, StatusType>
status_breakdownRecord<string, number>
status_pageStatusPage
total_updatesnumber

Properties

colorstring | null
created_atstring
descriptionstring | null
group_namestring | null
idstring
is_activeboolean
namestring
sort_ordernumber
status_page_idstring
updated_atstring
interface

StoredTicket

Properties

access_tokenstring

Access token for viewing the ticket

created_atstring

Creation timestamp

idstring

Ticket ID

magic_linkstringoptional

Magic link for authentication (optional)

statusstring

Ticket status

subjectstring

Ticket subject

user_emailstring

User email

Properties

customFormIdstringoptional

Custom form ID to use instead of default form. When provided, fetches the form config and renders its fields dynamically. The form should have integration.type = 'wish' to create feature requests.

descriptionstringoptional

Form description

onClose() => void

Callback when visibility changes

onError(error: string) => voidoptional

Callback when submission fails

onSuccess(wish: Wish) => voidoptional

Callback when wish is successfully submitted

submitButtonTextstringoptional

Submit button text

titlestringoptional

Form title

visibleboolean

Whether the sheet is visible

Properties

mime_typestringoptional
namestring
sizenumber
urlstring

Properties

checkDescriptionstringoptional

Check status section description

checkTitlestringoptional

Check status section title

customFormIdstringoptional

Custom contact form ID to use instead of default support form. When provided, fetches the form config and renders its fields dynamically. The form should have integration.type = 'support' to create tickets.

descriptionstringoptional

Page description

externalUserIdstringoptional

External user ID for tracking

headingstringoptional

Page heading

onCheckStatus(email: string) => voidoptional

Callback when checking status

onError(error: string) => voidoptional

Callback when submission fails

onStoredTicketClick(ticket: StoredTicket) => voidoptional

Callback when a locally stored recent ticket is clicked

onSuccess(ticket?: SupportRequest) => voidoptional

Callback when ticket is successfully submitted

onTicketClick(ticket: SupportRequest) => voidoptional

Callback when a ticket is clicked

showCategorybooleanoptional

Show category selector

showCheckStatusbooleanoptional

Show check status tab

showNamebooleanoptional

Show name field

submitButtonTextstringoptional

Submit button text

submitDescriptionstringoptional

Submit section description

submitTitlestringoptional

Submit section title

userEmailstringoptional

Pre-filled user email

userNamestringoptional

Pre-filled user name

Properties

attachmentsSupportAttachment[]optional
author_emailstring | nulloptional
author_namestring | nulloptional
author_type"user" | "team_member"
author_user_idstring | nulloptional
contentstring
created_atstring
idstring
is_internalboolean
support_request_idstring

Properties

attachmentsSupportUploadFile[]optional
contentstring

Properties

attachmentsSupportAttachment[]optional
contentstring
created_atstring
idstring

Properties

assignee_idstring | nulloptional
attachmentsSupportAttachment[]optional
categorySupportRequestCategory | nulloptional
created_atstring
descriptionstring
idstring
message_countnumber
messagesSupportMessage[]optional
prioritySupportRequestPriority | nulloptional
project_idstring
resolved_atstring | nulloptional
statusSupportRequestStatus
subjectstring
updated_atstring
user_emailstring
user_namestring | nulloptional

Properties

attachmentsSupportUploadFile[]optional
categorySupportRequestCategoryoptional
descriptionstring
external_user_idstringoptional
subjectstring
user_emailstring
user_namestringoptional

Properties

attachmentsSupportUploadFile[]optional

Files to upload and attach to the support ticket

categorySupportRequestCategoryoptional

Ticket category (optional)

descriptionstring

Ticket description/body

external_user_idstringoptional

External user ID for tracking (optional)

subjectstring

Ticket subject

user_emailstring

User's email address

user_namestringoptional

User's name (optional)

Properties

mime_typestringoptional
namestring
sizenumberoptional
typestringoptional
uristringoptional
interface

Survey

Survey

Properties

created_atstring
descriptionstring
idstring
is_activeboolean
namestring
nodesSurveyNode[]optional
number_of_questionsnumberoptional
number_of_responsesnumberoptional
project_idstring
responsesSurveyResponse[]optional
slugstring
updated_atstring
interface

SurveyAnswer

Survey Answer

Properties

answerbooleanoptional
answer_optionsstring[]optional
answer_ratingnumberoptional
answer_textstringoptional
created_atstring
idstring
nodeobjectoptional
node_idstring
response_idstring

Properties

autoAdvancebooleanoptional
fingerprintstringoptional
onError(error: string) => voidoptional
onSuccess() => voidoptional
slugstring
interface

SurveyNode

Survey Node Individual questions or result nodes in a survey decision tree.

Properties

answer_no_node_idstring | null
answer_yes_node_idstring | null
branchesSurveyNodeBranch[]optional
created_atstring
idstring
is_requiredbooleanoptional
max_ratingnumberoptional
min_ratingnumberoptional
next_node_idstring | nulloptional
optionsSurveyNodeOption[]optional
parent_idstring | null
questionstring
question_typeSurveyQuestionType
result_messagestring | null
sort_ordernumber
survey_idstring
updated_atstring

Survey Node Option

Properties

labelstring
valuestring

Survey Response

Properties

answersSurveyAnswer[]optional
created_atstring
external_user_idstring | null
fingerprintstring
idstring
metadataRecord<string, unknown>
survey_idstring

Input for submitting a survey response

Properties

answersobject[]
external_user_idstringoptional
fingerprintstring
metadataRecord<string, unknown>optional

Properties

skipbooleanoptional

Skip initial fetch

Properties

categoriesBlogCategory[]

List of blog categories

errorstring | null

Error message if any

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch data

Properties

skipbooleanoptional

Skip initial fetch

slugstring

The blog post slug to fetch

Properties

errorstring | null

Error message if any

isLoadingboolean

Loading state

postBlogPost | null

The blog post data

refetch() => Promise<void>

Manually refetch data

relatedPostsBlogPost[]

Related posts

Properties

categorystringoptional

Filter by category slug

featuredbooleanoptional

Only featured posts

per_pagenumberoptional

Items per page

refreshIntervalnumberoptional

Auto-refresh interval in milliseconds

searchstringoptional

Search query

skipbooleanoptional

Skip initial fetch

tagstringoptional

Filter by tag

Properties

errorstring | null

Error message if any

isLoadingboolean

Loading state

pagenumber

Current page number

postsBlogPost[]

List of blog posts

refetch() => Promise<void>

Manually refetch data

setFilters(filters: Partial<UseBlogPostsOptions>) => void

Update filters (resets to page 1)

setPage(page: number) => void

Set the current page

totalnumber

Total number of posts

totalPagesnumber

Total number of pages

Properties

autoFetchbooleanoptional

Whether to fetch comments automatically on mount

wishIdstring | null

The wish ID to fetch comments for

Properties

addComment(content: string, authorName?: string, authorEmail?: string) => Promise<boolean>

Add a new comment

commentsComment[]

List of comments

errorstring | null

Error message if any

isLoadingboolean

Loading state for initial fetch

isSubmittingboolean

Loading state while submitting a comment

refetch() => Promise<void>

Manually refetch comments

Properties

skipbooleanoptional

Skip initial fetch

Properties

errorstring | null

Error message if any

isLoadingboolean

Loading state

postsBlogPost[]

List of featured blog posts

refetch() => Promise<void>

Manually refetch data

Properties

enabledbooleanoptional

Whether to fetch the form on mount

interface

UseFormResult

Properties

errorstring | null

Error message if any

formForm | null

The form configuration

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch the form

Properties

onError(error: string) => voidoptional

Callback when submission fails

onSuccess(submission: FormSubmission) => voidoptional

Callback when form is submitted successfully

rateLimitMsnumberoptional

Minimum time between submissions in milliseconds

Properties

clearMessages() => void

Clear error and success messages

errorstring | null

Error message if submission failed

isRateLimitedboolean

Whether the user is rate-limited from submitting

isSubmittingboolean

Loading state during submission

submitForm(projectId: string, formId: string, data: Record<string, string | boolean>) => Promise<FormSubmission | null>

Submit the form

successMessagestring | null

Success message after submission

Properties

articleHelpArticle | null

The help article data

errorstring | null

Error message if any

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch data

Properties

collectionHelpCollection | null

The help collection data

errorstring | null

Error message if any

flowsHelpFlow[]

List of help flows in this collection

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch data

Properties

errorstring | null

Error message if any

flowHelpFlow | null

The help flow data with its articles

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch data

Properties

releaseSlugstring

The release slug to fetch

skipbooleanoptional

Skip initial fetch

Properties

errorstring | null

Error message if any

featuresReleaseFeature[]

Features included in this release

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch data

releaseRelease | null

The release data

Properties

limitnumberoptional

Maximum number of releases to fetch

skipbooleanoptional

Skip initial fetch

Properties

errorstring | null

Error message if any

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch data

releasesRelease[]

List of releases

Properties

refreshIntervalnumberoptional

Auto-refresh interval in milliseconds (0 to disable)

skipbooleanoptional

Skip initial fetch

Properties

columnsRoadmapColumn[]

Roadmap columns with items

errorstring | null

Error message if any

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch data

roadmapRoadmapData | null

Full roadmap data object

totalItemsnumber

Total number of items across all columns

Properties

refreshIntervalnumberoptional

Auto-refresh interval in milliseconds (0 to disable)

slugstringoptional

Status page slug

Properties

dataStatusPageOverview | null

Status page data including services and incidents

errorstring | null

Error message if any

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch data

Properties

onError(error: string) => voidoptional

Callback when an error occurs

onSuccess(ticket: SupportRequest) => voidoptional

Callback when ticket is submitted successfully

Properties

clearMessages() => void

Clear error and success messages

clearStoredTickets() => Promise<void>

Clear all locally stored tickets

errorstring | null

Error message if any operation failed

isSendingMagicLinkboolean

Loading state while sending magic link

isSubmittingboolean

Loading state during submission

isSubmittingMessageboolean

Loading state while submitting a thread message

isVerifyingboolean

Loading state while verifying token

loadStoredTickets() => Promise<void>

Reload stored tickets from local storage

requestMagicLink(email: string) => Promise<boolean>

Request a magic link to be sent to the user's email

storedTicketsStoredTicket[]

Locally stored tickets from previous submissions

submitMessage(ticketId: string, token: string, data: string | SupportMessageInput, attachments?: SupportUploadFile[]) => Promise<SupportMessageResponse | null>

Submit a message to an existing support ticket thread

submitTicket(data: SupportSubmitData) => Promise<SupportRequest | null>

Submit a support ticket

successMessagestring | null

Success message after successful operations

verifyToken(token: string) => Promise<object | null>

Verify a magic link token to get user's tickets

Properties

enabledbooleanoptional

Whether to fetch the survey on mount

Properties

errorstring | null

Error message if any

isLoadingboolean

Loading state

nodesSurveyNode[]

Survey question nodes

refetch() => Promise<void>

Manually refetch data

surveySurvey | null

The survey data

Properties

onError(error: string) => voidoptional

Callback when submission fails

onSuccess(response: SurveyResponse) => voidoptional

Callback when survey is submitted successfully

Properties

errorstring | null

Error message if submission failed

isSubmittingboolean

Loading state during submission

submitResponse(surveyId: string, data: SurveySubmitInput) => Promise<SurveyResponse | null>

Submit a survey response

useVote Hook Manages voting state and actions for wishes. Provides imperative vote/unvote/check methods for custom implementations.

Properties

onError(error: string) => voidoptional

Callback when a vote action fails

onVote(wishId: string, hasVoted: boolean, newCount: number) => voidoptional

Callback when a vote action completes successfully

interface

UseVoteResult

Properties

checkVote(wishId: string) => Promise<object>

Check if the current user has voted on a wish

errorstring | null

Error message if any

isVotingboolean

Loading state for vote operations

unvote(wishId: string, voteId: string, currentVoteCount: number) => Promise<boolean>

Remove a vote from a wish

vote(wishId: string, currentVoteCount: number) => Promise<boolean>

Cast a vote on a wish

Properties

filtersWishFiltersoptional

Initial filters for the wishes query

refreshIntervalnumberoptional

Auto-refresh interval in milliseconds (0 to disable)

skipbooleanoptional

Skip initial fetch

Properties

errorstring | null

Error message if any

isLoadingboolean

Loading state

pagenumber

Current page

refetch() => Promise<void>

Manually refetch data

setFilters(filters: WishFilters) => void

Update filters (resets to page 1)

setPage(page: number) => void

Go to a specific page

totalnumber

Total number of wishes

totalPagesnumber

Total pages

wishesWish[]

List of wishes

interface

Vote

Vote Types

Properties

created_atstring
fingerprintstring
idstring
user_idstring | nulloptional
voter_emailstring | nulloptional
wish_idstring

Properties

initialHasVotedbooleanoptional
initialVoteCountnumber
initialVoteIdstringoptional
onVoteChange(hasVoted: boolean, newCount: number) => voidoptional
size"sm" | "md" | "lg"optional
styleanyoptional
wishIdstring

Properties

has_votedboolean
vote_idstringoptional
interface

Wish

Properties

authorWishAuthoroptional
author_emailstring | nulloptional
author_namestring | nulloptional
author_type"user" | "anonymous" | "team_member"
categoryCategory | nulloptional
category_idstring | nulloptional
comment_countnumber
completed_atstring | nulloptional
created_atstring
descriptionstring
has_votedbooleanoptional
idstring
is_pinnedbooleanoptional
priorityWishPriority | nulloptional
project_idstring
slugstring
statusWishStatus
titlestring
updated_atstring
vote_countnumber
interface

WishAuthor

Properties

avatar_urlstring | nulloptional
emailstring | nulloptional
namestring
interface

WishCardProps

Properties

onCommentPress(wish: Wish) => voidoptional
onPress(wish: Wish) => voidoptional
onVote(wishId: string) => voidoptional
styleanyoptional
wishWish

Properties

onClose() => void
onVote(wishId: string) => voidoptional
visibleboolean
wishWish | null

Properties

dataWish[]
pagenumber
per_pagenumber
totalnumber
total_pagesnumber
interface

WishFilters

Properties

category_idstringoptional
fingerprintstringoptional
pagenumberoptional
per_pagenumberoptional
priorityWishPriority | WishPriority[]optional
searchstringoptional
sort_by"votes" | "created_at" | "updated_at"optional
sort_order"asc" | "desc"optional
statusWishStatus | WishStatus[]optional
interface

WishListProps

Properties

contentContainerStyleanyoptional
customFormIdstringoptional

Custom form ID for the submit sheet

descriptionstringoptional
emptyTextstringoptional
filtersWishFiltersoptional
onAddWish() => voidoptional
onCommentPress(wish: Wish) => voidoptional
onVote(wishId: string) => voidoptional
onWishPress(wish: Wish) => voidoptional
onWishSubmitted(wish: Wish) => voidoptional

Callback when a wish is successfully submitted

refreshIntervalnumberoptional
showSubmitButtonbooleanoptional

Show the submit idea button (defaults to true)

styleanyoptional
submitButtonTextstringoptional

Submit button text

submitSheetDescriptionstringoptional

Submit sheet description

submitSheetTitlestringoptional

Submit sheet title

titlestringoptional

ApiResponse

AppgramClientConfig

AppgramColors

AppgramConfig

Custom API URL (defaults to https://api.appgram.dev)

AppgramProviderProps

AppgramTheme

BadgeProps

BlogCardProps

BlogCategory

BlogFilters

BlogListProps

Parameters

errorstring
retry() => void

Returns

ReactNode

BlogPost

BlogPostDetailProps

Parameters

errorstring
retry() => void

Returns

ReactNode

BlogPostsResponse

BlogProps

Parameters

postBlogPost

Returns

void

Parameters

postBlogPost

Returns

void

Parameters

errorstring
retry() => void

Returns

ReactNode

ButtonProps

CardProps

Category

ChatScreenProps

Callback when an article source is tapped. Provides the article slug and full source data for flexible routing.

Parameters

slugstring
sourceChatSource

Returns

void

ChatSource

Source type - determines routing behavior

Comment

CommentAuthor

CommentCreateInput

CommentsResponse

Form

property

Form.id

Integration settings for form submission

FormField

FormRendererProps

FormSubmission

HelpArticle

HelpArticleCardProps

HelpArticleDetailProps

HelpCenterProps

HelpCollection

HelpFlow

HelpFlowCardProps

HelpFlowDetailProps

InputProps

PaginatedResponse

Release

ReleaseDetailProps

ReleaseFeature

ReleaseListProps

ReleasesProps

RoadmapBoardProps

RoadmapColumn

RoadmapData

RoadmapItem

StatusBoardProps

StatusPage

StatusPageOverview

StatusPageService

StoredTicket

SubmitWishSheetProps

Custom form ID to use instead of default form. When provided, fetches the form config and renders its fields dynamically. The form should have integration.type = 'wish' to create feature requests.

SupportAttachment

SupportFormProps

Custom contact form ID to use instead of default support form. When provided, fetches the form config and renders its fields dynamically. The form should have integration.type = 'support' to create tickets.

Callback when submission fails

Parameters

errorstring

Returns

void

Callback when a locally stored recent ticket is clicked

Parameters

ticketStoredTicket

Returns

void

Callback when ticket is successfully submitted

Parameters

ticketSupportRequestoptional

Returns

void

Callback when a ticket is clicked

Parameters

ticketSupportRequest

Returns

void

SupportMessage

SupportMessageInput

SupportMessageResponse

SupportRequest

SupportRequestInput

SupportSubmitData

SupportUploadFile

Survey

SurveyAnswer

SurveyFormProps

SurveyNode

SurveyNodeOption

SurveyResponse

SurveySubmitInput

UseBlogCategoriesOptions

UseBlogCategoriesResult

UseBlogPostOptions

UseBlogPostResult

UseBlogPostsOptions

UseBlogPostsResult

Update filters (resets to page 1)

Parameters

filtersPartial<UseBlogPostsOptions>

Returns

void

UseCommentsOptions

UseCommentsResult

Add a new comment

Parameters

contentstring
authorNamestringoptional
authorEmailstringoptional

Returns

Promise<boolean>

UseFeaturedPostsOptions

UseFeaturedPostsResult

UseFormOptions

UseFormResult

Manually refetch the form

Returns

Promise<void>

UseFormSubmitOptions

Callback when form is submitted successfully

Parameters

submissionFormSubmission

Returns

void

UseFormSubmitResult

Submit the form

Parameters

projectIdstring
formIdstring
dataRecord<string, string | boolean>

Returns

Promise<FormSubmission | null>

UseHelpArticleResult

UseHelpCenterResult

UseHelpFlowResult

UseReleaseOptions

UseReleaseResult

UseReleasesOptions

UseReleasesResult

UseRoadmapOptions

UseRoadmapResult

UseStatusOptions

UseStatusResult

Status page data including services and incidents

UseSupportOptions

Callback when an error occurs

Parameters

errorstring

Returns

void

Callback when ticket is submitted successfully

Parameters

ticketSupportRequest

Returns

void

UseSupportResult

Submit a message to an existing support ticket thread

Parameters

ticketIdstring
tokenstring
datastring | SupportMessageInput
attachmentsSupportUploadFile[]optional

Returns

Promise<SupportMessageResponse | null>

Submit a support ticket

Parameters

dataSupportSubmitData

Returns

Promise<SupportRequest | null>

Verify a magic link token to get user's tickets

Parameters

tokenstring

Returns

Promise<object | null>

UseSurveyOptions

UseSurveyResult

UseSurveySubmitOptions

Callback when survey is submitted successfully

Parameters

responseSurveyResponse

Returns

void

UseSurveySubmitResult

Submit a survey response

Parameters

surveyIdstring
dataSurveySubmitInput

Returns

Promise<SurveyResponse | null>

UseVoteOptions

Callback when a vote action fails

Parameters

errorstring

Returns

void

Callback when a vote action completes successfully

Parameters

wishIdstring
hasVotedboolean
newCountnumber

Returns

void

UseVoteResult

Check if the current user has voted on a wish

Parameters

wishIdstring

Returns

Promise<object>

Remove a vote from a wish

Parameters

wishIdstring
voteIdstring
currentVoteCountnumber

Returns

Promise<boolean>

Cast a vote on a wish

Parameters

wishIdstring
currentVoteCountnumber

Returns

Promise<boolean>

UseWishesOptions

UseWishesResult

Update filters (resets to page 1)

Parameters

filtersWishFilters

Returns

void

Go to a specific page

Parameters

pagenumber

Returns

void

Vote

property

Vote.id

VoteButtonProps

Parameters

hasVotedboolean
newCountnumber

Returns

void

VoteCheckResponse

Wish

property

Wish.id

WishAuthor

WishCardProps

Parameters

wishIdstring

Returns

void

WishDetailModalProps

WishesResponse

WishFilters

WishListProps

Deprecated. Use showSubmitButton instead. Custom handler for add wish button.

Returns

void

Parameters

wishIdstring

Returns

void

Callback when a wish is successfully submitted

Parameters

wishWish

Returns

void

Types

Help Center Types

Form Types Configurable forms for collecting user submissions.

Status Page Types Types for status page API responses.

Theme mode options

Wish (Feature Request) Types

Symbols

variable

darkColors

variable

lightColors

variable

radius

variable

spacing

Components

@appgram/react-native React Native SDK for Appgram - feature voting, roadmaps, changelogs, help center, support, surveys, blog, and status pages.

Parameters

__namedParametersAppgramProviderProps

Returns

ReactElement
function

Badge

Badge Component A small status indicator with variant support. Supports muted, success, warning, error, and info actions.

Parameters

__namedParametersBadgeProps

Returns

ReactElement
function

Blog

Blog Component Full-featured blog with list and detail views. Note: For app navigation, use BlogList and BlogPostDetail separately.

Parameters

__namedParametersBlogProps

Returns

ReactElement
function

BlogCard

BlogCard Component Modern card with image overlay text. Supports default, compact, and large variants.

Parameters

__namedParametersBlogCardProps

Returns

ReactElement
function

BlogList

BlogList Component Blog list with search, filter, and category pills. Use this for custom navigation instead of the full Blog component.

Parameters

__namedParametersBlogListProps

Returns

ReactElement

BlogPostDetail Component Blog detail view with full-width hero image. Can receive post data directly or fetch by slug.

Parameters

__namedParametersBlogPostDetailProps

Returns

any
function

Button

Button Component A styled button with variant support. Supports solid, outline, and ghost variants with sm, md, lg sizes.

Parameters

__namedParametersButtonProps

Returns

ReactElement
function

Card

Card Component A styled container with variant support. Supports default, elevated, and outlined variants.

Parameters

__namedParametersCardProps

Returns

ReactElement
function

ChatScreen

ChatScreen Component Full-screen AI-powered chat for help center integration. Queries the help center API and displays responses with sources.

Parameters

__namedParametersChatScreenProps

Returns

ReactElement
function

FormRenderer

FormRenderer Component Renders a dynamic form based on form configuration. Supports text, email, textarea, checkbox, select, and radio fields.

Parameters

__namedParametersFormRendererProps

Returns

ReactElement

HelpArticleCard Component A card displaying a help article preview. Use to build custom help article lists.

Parameters

__namedParametersHelpArticleCardProps

Returns

ReactElement

HelpArticleDetail Component Displays help article content with HTML rendering. Use with your app's navigation.

Parameters

__namedParametersHelpArticleDetailProps

Returns

ReactElement
function

HelpCenter

HelpCenter Component Displays help center flows/collections list. Use onFlowPress to navigate to flow detail in your app.

Parameters

__namedParametersHelpCenterProps

Returns

ReactElement
function

HelpFlowCard

HelpFlowCard Component A card displaying a help flow/collection. Use to build custom help center navigation.

Parameters

__namedParametersHelpFlowCardProps

Returns

ReactElement

HelpFlowDetail Component Displays articles within a help flow/collection. Use with your app's navigation.

Parameters

__namedParametersHelpFlowDetailProps

Returns

ReactElement
function

Input

Input Component A styled text input with label and error support. Automatically shows focus and error states.

Parameters

__namedParametersInputProps

Returns

ReactElement

ReleaseDetail Component Displays a single release with its description, features, and changelog items. Can receive release data directly or fetch by slug.

Parameters

__namedParametersReleaseDetailProps

Returns

any
function

ReleaseList

ReleaseList Component A list of product releases with version badges and dates. Use this for custom navigation instead of the full Releases component.

Parameters

__namedParametersReleaseListProps

Returns

any
function

Releases

Releases Component A timeline-style changelog displaying product releases with features, improvements, and bugfixes.

Parameters

__namedParametersReleasesProps

Returns

any
function

RoadmapBoard

RoadmapBoard Component A horizontal scrollable Kanban-style roadmap displaying columns and items. Tapping an item opens the WishDetailModal for voting and comments.

Parameters

__namedParametersRoadmapBoardProps

Returns

any
function

StatusBoard

StatusBoard Component Displays system status with services and incidents.

Parameters

__namedParametersStatusBoardProps

Returns

ReactElement

SubmitWishSheet Component Bottom sheet/modal for submitting new feature requests. Supports auto-detection of custom forms from project customization.

Parameters

__namedParametersSubmitWishSheetProps

Returns

ReactElement
function

SupportForm

SupportForm Component Modern support form with tabs for submitting and tracking support tickets. Supports custom contact forms with dynamic field rendering.

Parameters

__namedParametersSupportFormProps

Returns

ReactElement
function

SurveyForm

SurveyForm Component Interactive survey form with decision tree branching support. Supports yes/no branching, conditional branches, and result messages.

Parameters

__namedParametersSurveyFormProps

Returns

any
function

VoteButton

VoteButton Component An upvote button for wishes with optimistic updates.

Parameters

__namedParametersVoteButtonProps

Returns

ReactElement
function

WishCard

WishCard Component A card displaying a wish/feature request with voting and status.

Parameters

__namedParametersWishCardProps

Returns

ReactElement

WishDetailModal Component A bottom sheet modal displaying wish details, voting, and comments. Supports swipe-to-dismiss and inline comment submission.

Parameters

__namedParametersWishDetailModalProps

Returns

any
function

WishList

WishList Component A list of wishes with header, submit button, and empty states. Includes built-in SubmitWishSheet for submitting new feature requests.

Parameters

__namedParametersWishListProps

Returns

ReactElement

Hooks

@appgram/react-native React Native SDK for Appgram - feature voting, roadmaps, changelogs, help center, support, surveys, blog, and status pages.

Returns

AppgramContextValue

@appgram/react-native React Native SDK for Appgram - feature voting, roadmaps, changelogs, help center, support, surveys, blog, and status pages.

Returns

AppgramTheme

Parameters

optionsUseBlogCategoriesOptionsoptional

Returns

UseBlogCategoriesResult
function

useBlogPost

Parameters

optionsUseBlogPostOptions

Returns

UseBlogPostResult
function

useBlogPosts

Parameters

optionsUseBlogPostsOptionsoptional

Returns

UseBlogPostsResult
function

useComments

Parameters

__namedParametersUseCommentsOptions

Returns

UseCommentsResult

Parameters

optionsUseFeaturedPostsOptionsoptional

Returns

UseFeaturedPostsResult
function

useForm

Fetch a form configuration by ID.

Parameters

formIdstring

The form ID

optionsUseFormOptionsoptional

Hook options

Returns

UseFormResult

Submit forms with rate limiting.

Parameters

optionsUseFormSubmitOptionsoptional

Hook options

Returns

UseFormSubmitResult

Fetch a specific help article by slug and flow ID.

Parameters

slugstring

The article slug

flowIdstring

The parent flow ID

Returns

UseHelpArticleResult

Returns

UseHelpCenterResult
function

useHelpFlow

Fetch a specific help flow by slug.

Parameters

slugstring

The help flow slug

Returns

UseHelpFlowResult
function

useRelease

Parameters

optionsUseReleaseOptions

Returns

UseReleaseResult
function

useReleases

Parameters

optionsUseReleasesOptionsoptional

Returns

UseReleasesResult
function

useRoadmap

Parameters

optionsUseRoadmapOptionsoptional

Returns

UseRoadmapResult
function

useStatus

Parameters

optionsUseStatusOptionsoptional

Returns

UseStatusResult
function

useSupport

Parameters

optionsUseSupportOptionsoptional

Returns

UseSupportResult
function

useSurvey

Fetch a survey by slug.

Parameters

slugstring

The survey slug to fetch

optionsUseSurveyOptionsoptional

Hook options

Returns

UseSurveyResult

Submit survey responses.

Parameters

optionsUseSurveySubmitOptionsoptional

Hook options

Returns

UseSurveySubmitResult
function

useVote

Parameters

optionsUseVoteOptionsoptional

Returns

UseVoteResult
function

useWishes

Parameters

optionsUseWishesOptionsoptional

Returns

UseWishesResult

Utilities

Extract error message from various error types

Parameters

errorunknown
fallbackstringoptional

Returns

string

Get device fingerprint for React Native Uses platform info, screen dimensions, and a random component

Returns

string
—