CupThread React Native & Expo SDK - v0.1.0
    Preparing search index...

    Function FeatureRequestDetail

    • Full-screen modal screen displaying detailed feature request descriptions, badges, upvoting, and comments.

      Parameters

      Returns Element

      import React from 'react';
      import { FeatureRequestDetail, type FeatureRequestItem } from '@cupthread/react-native';

      export function RequestViewer({
      activeRequest,
      onClose,
      }: {
      activeRequest: FeatureRequestItem | null;
      onClose: () => void;
      }) {
      if (!activeRequest) return null;
      return <FeatureRequestDetail item={activeRequest} visible onClose={onClose} />;
      }

      Keeping the detail mounted while a different request is passed as item is supported: internal vote and comment state resets and the new request's content renders immediately, so votes and comments always target the request currently displayed.