Use @appgram/react-native inside a React Native application. The package requires React 18+ and React Native 0.70+.
Install the SDK and peers
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
These 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.
Show a feedback screen
Replace the project values and render the provider above the screens that use AppGram:
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>
);
}
WishList includes the feature-request interface. For a custom native screen, use the documented useWishes hook and its loading, error, and pagination state.
Use 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.
Add other surfaces
The 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.
Configuration accepts apiUrl for an API deployment override, theme for native colors, and enableFingerprinting for anonymous identification. See Customer identity and client credentials.
If native modules cannot be found
Check 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.
Continue with the React Native reference and troubleshooting guide.