Troubleshooting
The NitroUI CLI reports a nitro-core mismatch
Every module must resolve the same nitro-core as the SDK. nitro-view-shot pins 1.0.0-alpha.nightly.138.g43e09c161101; NitroUI 0.3.0 pins .137. Add both overrides to the app's package.json, then reinstall and run bun run nitro-ui prepare:
"overrides": {
"nitro-core": "1.0.0-alpha.nightly.138.g43e09c161101",
"nitrogen": "1.0.0-alpha.nightly.138.g43e09c161101"
}
ViewShotView is not mounted.
capture() ran while the ViewShotView was not mounted: before the first render committed, after it unmounted, or behind a condition that removed it. Capture from an event handler after the view is on screen.
Cannot capture a view with an empty size.
The view has zero width or height. Check its layout: a view whose children are all absolutely positioned, or a flex child that shrank to nothing, has no size. Give it a size, or capture after layout.
Children spill past rounded corners on Android
The view uses different radii per corner. Android only clips uniform-radius outlines here; see Platform differences.
Colors look swapped when reading pixels
Read pixelFormat from toRawPixelData(). iOS typically returns 'BGRA' and Android 'RGBA'. See Using the image.
Something else
Open an issue with the bug template, including the platform, OS version, NitroUI version and the error message.