0.23.0 (2025-02-21)
Nitro Views!!!! 🥳
This release includes first-class support for creating React Native views with Nitro. See the View components docs for more information.
export interface CameraProps {
enableFlash: boolean
}
export interface CameraMethods {
takePhoto(): Promise<Image>
}
export type CameraView = HybridView<CameraProps, CameraMethods>
..each HybridView is also a HybridObject, so you can access props and methods on it and pass it around like any other HybridObject - you can even pass Swift/Kotlin views to C++ and use them without bridging between languages yourself!!
Also, they're faster.
Note: Nitro Views require react-native 0.78.0+, and only work on the new architecture.
✨ Features
- Nitro Views!!!!!!!!! 🥳 (#512) (28f9c4a)
- Add example to pass a HybridView to a normal HybridObject (#556) (a556b5b)
- Add extra path for
cloneProps
to make sure we dont ever use folly (#551) (29068e4) - Set up
hybridRef
(#553) (4111c67) - Treat HybridViews differently now - they're type aliases (#552) (fa8ede8)
🐛 Bug Fixes
- [HybridViews] Automatically wrap all function props as objects (#550) (5e6b589)
- Append
.gitattributes
file as well (#532) (ff9d709) - Fix
f.path
sometimes being undefined (#533) (4907639) - Fix crash when no modules are registered (#536) (bff32c0)
- Generate
@JvmName
prop for Kotlin methods (#534) (897b5c6) - HybridView is now a union type.. (#557) (834f493)