18 Commits
Author SHA1 Message Date
Marc RousavyandGitHub 6d0b5e2251 fix: Hide React Native version checks from public headers (#1521) 2026-08-21 13:56:26 +02:00
Marc RousavyandGitHub 996c7ed992 fix: Rename CachedProp to ReactProp, re-add legacy CachedProp as deprecated (#1517)
The v0.37.0 View props rewrite changed `CachedProp<T>`'s API (immutable
shared entry, `get()`/`isProvided()`/`hasSameValue()`), which broke
modules whose specs were generated by nitrogen <= 0.36.x - their generated
code uses the old mutable API (`.value`, `.isDirty`, 3-arg
`fromRawValue(runtime, value, oldProp)`) and no longer compiled against
the new core.

- Rename the new implementation to `ReactProp<T>` (cpp/views/ReactProp.hpp),
  and fold its now-single-use private helpers into `fromRawValue`
- Re-add `CachedProp<T>` exactly as it shipped in v0.36.5, marked
  [[deprecated]], so old generated specs compile again (with a warning)
- Update nitrogen to emit `ReactProp` and re-generate nitro-test specs
2026-08-20 18:33:05 +02:00
Marc RousavyandGitHub 50f00a44e2 fix: Preserve native View prop defaults (#1510) 2026-08-20 15:42:34 +02:00
Marc RousavyandGitHub be66726759 fix: Make View prop snapshots truly immutable via diffing (#1506)
* fix: Diff immutable Nitro View props

* fix: inline view prop change check
2026-08-20 15:27:05 +02:00
Marc RousavyandGitHub 551749f430 fix: Preserve classic View prop parsing across React Native versions (#1507) 2026-08-20 11:50:54 +02:00
Marc RousavyandGitHub f96e3e5595 fix: Make CachedProp<T>'s data immutable (#1503) 2026-08-20 11:16:30 +02:00
Marc RousavyandGitHub d61a6e1cf9 fix: Avoid dangling View props reference (#1502)
* fix dangling View props reference

* refactor View props casts for clarity
2026-08-20 11:14:49 +02:00
Marc RousavyandGitHub 284d87b423 fix: require props-constructible View state on Android (#1501) 2026-08-20 10:50:16 +02:00
Marc RousavyandGitHub cfd7c50d3f fix: call base View Component Descriptor adopt (#1500) 2026-08-20 10:50:16 +02:00
Marc RousavyandGitHub 58e865309f fix: Add RawPropsParser JSI Parser bool argument on RN <85 (#1491)
* chore: Split out `callback` to a separate file

* fix: Add `RawPropsParser` JSI Parser bool argument on RN <85
2026-08-20 10:50:15 +02:00
Marc RousavyandGitHub f6048076cb feat: Move Props into Nitro Modules core via C++ template (#1487)
* feat: Move `Props` into Nitro Modules core via C++ template

* Update Podfile.lock

* Generate props in user code again

* Use CachedProp constructor

* include properly

* Update IsFunctionProp.hpp

* refactor

* simplify
2026-08-20 10:50:14 +02:00
Marc RousavyandGitHub 670f4654f5 feat: Move react::ComponentDescriptor into Nitro Modules core via C++ template (#1486)
* feat: Add base files

* use type

* clean header

* Update ViewComponentDescriptor.hpp

* Use it!

* fix build error

* comments

* Update JSIRawPropsParser.hpp

* remove raw prop parser ig

* fix: remove deleted header from podspec
2026-08-20 10:50:14 +02:00
Marc RousavyandGitHub 67d45a4e3f perf: Set isDirty to false to avoid JNI roundtrips (#1195)
* chore: Move import to .cpp

* fix: Make `jsiValue` private

* try our experiment

* fix: Generate new code for props

* tidy

* chore: Lint

* fix: Remove unused props copy constructor
2026-02-03 12:45:36 +01:00
Marc RousavyandGitHub d67af1264e fix: Fix potential deadlocks by releasing JSICacheReference earlier (#1191)
* fix: Fix potential deadlocks by releasing `JSICacheReference` earlier

* chore: Format
2026-01-29 16:24:48 +01:00
Marc RousavyandGitHub 0c5e716ab1 fix: Fix a case where a nullptr BorrowingReference<T> could be accessed (#568)
* fix: Fix a case where a `nullptr` `BorrowingReference<T>` could be accessed

* Update HybridObjectPrototype.cpp

* chore: Replace `jsi::Runtime*` with `jsi::Runtime&` in `JSArrayBuffer`

* Update ArrayBuffer.cpp
2025-02-23 17:16:50 +01:00
Marc RousavyandGitHub 6998588b70 chore: Rename BorrowingReference<T> -> WeakReference<T>, and OwningReference<T> -> BorrowingReference<T> (#523)
* chore: Rename `BorrowingReference<T>` -> `WeakReference<T>`, and `OwningReference<T>` -> `BorrowingReference<T>`

* chore: Remove unused flag

* chore: Lint

* fix: remove unnecessary nullptr compare
2025-02-03 18:30:04 +01:00
Marc RousavyandGitHub 35a4efb6a0 chore: Import react-native version from ReactNativeVersion.h (#505)
* feat: Import react-native version from `ReactNativeVersion.h`

* fix: Use NitroDefines import

* chore: Use actual types
2025-01-21 15:22:48 +01:00
Marc RousavyandGitHub baed798c3e feat: Create React Native ViewManager (+ Props + State) for HybridViews (#500) 2025-01-20 16:40:15 +01:00