On-Device AI Software Mansion's production patterns for on-device AI in React Native using React Native ExecuTorch. Load at most one reference file per question. For hook API signatures, model constants, and configuration options, webfetch the relevant page from the official docs at . Decision Tree Pick the right hook based on the AI task. Critical Rules - Call before any other API. You must initialize the library with a resource fetcher adapter at the entry point of your app. Without it, all hooks throw . - Always check before calling or . Hooks load models asynchronously. Calling inference…