Description
installWorkletsSupport() wraps optional module loading, Nitro proxy boxing, and custom serializer registration in one blanket catch. This is useful when react-native-worklets is absent, but it also silently disables an installed integration when Nitro boxing or Worklets registration fails.
Reproduction
With the Worklets module available, make NitroModules.box or registerCustomSerializable throw during initialization. Importing Nitro completes without surfacing the actionable failure, and Worklets support remains disabled.
Expected behavior
Only optional module absence/loading should use the no-integration fallback; initialization failures after a successful load should propagate.
Description
installWorkletsSupport()wraps optional module loading, Nitro proxy boxing, and custom serializer registration in one blanket catch. This is useful whenreact-native-workletsis absent, but it also silently disables an installed integration when Nitro boxing or Worklets registration fails.Reproduction
With the Worklets module available, make
NitroModules.boxorregisterCustomSerializablethrow during initialization. Importing Nitro completes without surfacing the actionable failure, and Worklets support remains disabled.Expected behavior
Only optional module absence/loading should use the no-integration fallback; initialization failures after a successful load should propagate.