Wrap your root React Native app component or navigation container in <CupThreadProvider>
to supply the active FeedbackClient, theme tokens, user credentials, and
localized strings — UI text follows the device language by default (locale="auto").
import React from 'react';
import { FeedbackClient, CupThreadProvider, FeatureRequestsScreen } from '@cupthread/react-native';
const client = new FeedbackClient({
baseUrl: 'https://api.cupthread.com',
appKey: 'app_live_abc123',
});
export default function App() {
return (
<CupThreadProvider client={client} theme="system" locale="zh-Hans">
<FeatureRequestsScreen />
</CupThreadProvider>
);
}
Top-level React context provider for CupThread SDK screens and components.