Two React Native libraries for agents that run on the phone
Deft reads your screen and taps for you with a Gemma 4 model that never leaves the device. Two of its layers are now separate npm packages.
react-native-accessibility-controller
An Android AccessibilityService exposed as a React Native TurboModule. From JS you can read the full UI tree of the foreground app, tap, long press and swipe by node or coordinate, press home, back and recents, open an app by package name, and take screenshots through MediaProjection on API 29 and up. Version 1.4 requires the New Architecture.
react-native-device-agent
The loop on top: observe the screen, ask the model what to do, execute the action, repeat. GemmaProvider runs E2B or E4B locally.
npm i react-native-device-agent react-native-accessibility-controller
const { execute } = useAgent({ provider: new GemmaProvider({ model: 'GEMMA4_E4B' }) });
execute('Open Settings and turn on Wi-Fi');
Both are MIT. Repos: github.com/bedda-tech/react-native-device-agent and github.com/bedda-tech/react-native-accessibility-controller. The app that uses them is github.com/bedda-tech/deft.
We build agent-driven and on-device mobile apps for clients. If you need one, write to us: https://www.bedda.tech/contact