adamant-airport-69140
08/11/2025, 8:34 AMtall-airline-16756
08/11/2025, 8:34 AMtall-airline-16756
08/11/2025, 8:35 AMagentState in React Native by using the useVoiceAssistant hook from @livekit/components-react. Check out this example:
import { useVoiceAssistant, type AgentState } from '@livekit/components-react';
function YourComponent() {
const { state: agentState } = useVoiceAssistant();
return (
// Use agentState in your React Native component
);
}
Just so you know, the agentState can be one of these: 'disconnected', 'connecting', 'initializing', 'listening', 'thinking', or 'speaking'. Hope this helps!
Sources: src/hooks.ts | AI voice agents | LiveKit Docsadamant-airport-69140
08/11/2025, 1:55 PMtall-airline-16756
08/11/2025, 1:56 PM