{"schemaVersion":1,"title":"React Native setup","url":"https://appgram.dev/docs/guides/sdks/react-native","markdownUrl":"https://appgram.dev/docs/format-md/guides/sdks/react-native.md","jsonUrl":"https://appgram.dev/docs/agent/pages/guides/sdks/react-native.json","version":"current","locale":"en","markdown":"# React Native setup\n\nInstall native peers and render your first AppGram screen.\n\nUse `@appgram/react-native` inside a React Native application. The package requires React 18+ and React Native 0.70+.\n\n## Install the SDK and peers\n\n```bash\nnpm install @appgram/react-native@0.1.2\nnpm install @react-native-async-storage/async-storage lucide-react-native react-native-svg react-native-markdown-display react-native-render-html\n```\n\nThese five packages are peer dependencies, not optional extras. Use versions compatible with your application's React Native or Expo version, and complete the native dependency setup required by those packages. Adding a JavaScript dependency alone does not update an already installed native application.\n\n## Show a feedback screen\n\nReplace the project values and render the provider above the screens that use AppGram:\n\n```tsx\nimport React from 'react';\nimport { SafeAreaView } from 'react-native';\nimport { AppgramProvider, WishList } from '@appgram/react-native';\n\nexport default function App() {\n  return (\n    <AppgramProvider config={{\n      projectId: 'YOUR_PROJECT_ID',\n      orgSlug: 'your-org',\n      projectSlug: 'your-project',\n    }}>\n      <SafeAreaView style={{ flex: 1 }}>\n        <WishList />\n      </SafeAreaView>\n    </AppgramProvider>\n  );\n}\n```\n\n`WishList` includes the feature-request interface. For a custom native screen, use the documented `useWishes` hook and its loading, error, and pagination state.\n\nUse [Getting started](/guides/getting-started) to create and approve a sample request before testing this screen. Confirm it appears, cast a vote, and refresh the dashboard to check the saved count. An empty successful response is not a native setup error.\n\n## Add other surfaces\n\nThe SDK exports `RoadmapBoard`, `Releases`, `HelpCenter`, `SupportForm`, `SurveyForm`, and `StatusBoard`. Keep their screens under the same provider. Supply organization and project slugs for release and public URL routing.\n\nConfiguration accepts `apiUrl` for an API deployment override, `theme` for native colors, and `enableFingerprinting` for anonymous identification. See [Customer identity and client credentials](/guides/client-identity).\n\n## If native modules cannot be found\n\nCheck that every peer dependency is installed in the application workspace, with a version supported by your platform. Complete that package's platform installation steps, then restart the JavaScript bundler and install an updated native application. Reloading JavaScript cannot add a missing native module.\n\nContinue with the [React Native reference](/react-native-sdk) and [troubleshooting guide](/guides/troubleshooting).\n\n","contentLocale":"en","isFallback":false,"authorship":{"authors":[],"contributors":[],"reviewedBy":[]}}