@uicheck/rn

Source: README

Install

npm install @uicheck/rn

React Native client for uicheck. It instruments React / JSX creation during initUiCheck so AI agents can inspect runtime element boxes, text, testID, and accessibility labels through @uicheck/mcp.

import { initUiCheck } from '@uicheck/rn'
 
initUiCheck({
  socket: {
    url: 'ws://127.0.0.1:17322/socket'
  }
})

Screenshot

React Native screenshots depend on the host app. To support capture_page, capture_element, and compare_screenshot, pass a screenshot function that returns PNG base64.

initUiCheck({
  screenshot: async () => ({
    mimeType: 'image/png',
    base64: await captureAppAsBase64()
  })
})

Options

OptionTypeDefaultDescription
socket.urlstring-@uicheck/mcp WebSocket URL
socket.clientIdstring-Optional stable client id
socket.reconnectMsnumber1000Reconnect interval
screenshotfunction-Optional screenshot function for capture_page, capture_element, and compare_screenshot, returning PNG base64