Skip to content
Preview: packages are not published yet.

Known limits

These limits are known and left as they are in this preview. Each entry says what you see, when it happens, and what to do. The first three are Android only. The fourth and seventh concern the patch step, and the fifth and sixth concern packaged artifacts. Some were found by reading the code and were not reproduced on a device; the entries say so.

Several Activities: nitro-ui-glass gets the context of the host attached last

Section titled “Several Activities: nitro-ui-glass gets the context of the host attached last”
  • What you see: A nitro-ui-glass view is created on the Activity of the host that attached last, even when another Activity shows it.
  • When it happens: Your app uses nitro-ui-glass and has more than one Activity showing React at once. The cause is the deprecated AndroidHost.context, which the library keeps so that packages built against stock Nitro UI still compile. It returns the context of the most recently attached host.
  • What to do: There is no workaround in this preview.

A tab bar shown in another Activity keeps the first host’s theme; a modal-sheet screen gets no Activity notifications

Section titled “A tab bar shown in another Activity keeps the first host’s theme; a modal-sheet screen gets no Activity notifications”
  • What you see: A tab bar keeps the theme of the first host after it is shown under a second host in another Activity. A screen shown only in a modal sheet does not receive Activity notifications.
  • When it happens: The tab bar is created while one host is current and is later shown under a different host in another Activity. Each host counts its attachments from 1, so two hosts can look like the same generation, and the tab bar does not notice that it moved. A screen is shown only in a modal sheet. The tab bar case was found by reading the code and was not reproduced on a device.
  • What to do: Use one host per navigation stack, which is how the library mounts surfaces. No other workaround is known.

Keyboard.dismiss() during the closing animation resolves at once

Section titled “Keyboard.dismiss() during the closing animation resolves at once”
  • What you see: If the keyboard is already animating closed when Keyboard.dismiss() is called, the call resolves immediately, before the animation ends. Stock Nitro UI waited for the animation to end.
  • When it happens: The call arrives while the keyboard is closing. The dismissal object is created only while a dismissal is in flight, so that nothing stays in your app’s content view. A new one has no record of an animation that started before it, and the window insets already report the keyboard as hidden. This was inferred from the code and was not observed on a device.
  • What to do: There is no workaround in this preview. If your code needs to wait for the end of the animation, this call does not give you that in this case.

The patch step checks only the files the patches touch

Section titled “The patch step checks only the files the patches touch”
  • What you see: The patch step hashes only the files that the patches touch, and it does not build native code.
  • When it happens: After you run install or undo with the patch step.
  • What to do: Run nitro-ui prepare --clean after install and undo. For the patch step itself, see Patches.

Android artifacts carry arm64-v8a libraries only, and iOS artifacts carry arm64 slices only

Section titled “Android artifacts carry arm64-v8a libraries only, and iOS artifacts carry arm64 slices only”
  • What you see: Android artifacts contain arm64-v8a libraries only. iOS artifacts contain arm64 slices only.
  • When it happens: Whenever you package an artifact. Packaging also needs an Apple silicon Mac.
  • What to do: No workaround is documented in this preview.

On iOS, nuib package stops when the project has bundled images

Section titled “On iOS, nuib package stops when the project has bundled images”
  • What you see: nuib package stops with an error on iOS. Android packages the same images.
  • When it happens: The project has bundled images.
  • What to do: No workaround is documented in this preview.

The patch step was exercised on one toolchain only

Section titled “The patch step was exercised on one toolchain only”
  • What you see: The patch step is verified only with Bun 1.4.5 on macOS arm64. Nothing was verified on a physical device, on Linux or Windows, or with npm, pnpm or Yarn.
  • When it happens: You use any other Bun version, operating system, package manager, or a physical device.
  • What to do: No workaround is documented in this preview. Treat the patch step on any other setup as unverified.