@loomic/react-native
v0.1.5
Published
React Native integration layer for the Loomic agentic app runtime
Readme
@loomic/react-native
React Native integration layer for the Loomic agentic runtime. Connects the runtime to your component tree and provides hooks for subscribing to agent-driven state.
What it does
AgenticAppProvider— initializes the runtime and provides it via React contextAgenticScreen— renders the dynamic screen descriptor emitted by the agent; you register your own components and the agent mounts/unmounts/updates themuseRuntime()— access the runtime instance from any componentuseScreenState()— subscribe to live screen state updatesuseRuntimeEvent()— listen to specific run-loop eventsuseGoals()/useNarrative()/useJournal()— subscribe to agent memory and reasoning state
Note: This package ships source (
.tsx) rather than compiled output. It is consumed directly by Metro, the React Native bundler. No build step needed.
Install
npm install @loomic/react-native @loomic/runtime @loomic/typesMinimal setup
import { AgenticAppProvider, AgenticScreen } from '@loomic/react-native';
import { runtime } from './runtime'; // your createAgenticRuntime() instance
export default function App() {
return (
<AgenticAppProvider runtime={runtime}>
<AgenticScreen components={{ HeroCard, ActionButton }} />
</AgenticAppProvider>
);
}