Marc Rousavy
Marc Rousavy
react-native 0.82 added `NativeComponentRegistry` to the default `react-native` export. Now we can import it like that. We have a fallback in there for when calling this on older react-native versions....
Fixes https://github.com/mrousavy/nitro/issues/876 another way - it reverts https://github.com/mrousavy/nitro/pull/946 and enables a new experimental Swift feature (`AddressableParameters`) that fixes this issue in the Swift compiler instead of adding a workaround.
Adds a `NITRO_ENABLE_LOGS` flag to `NitroDefines.hpp`. This is `1` in my project, but will be flipped to `0` just when we're about to publish this to npm. - Resolves https://github.com/mrousavy/nitro/issues/883
## What Adds a priority argument to `Dispatcher::runAsync(F&&)`. This internally uses the `CallInvoker`'s counterpart: - `CallInvoker::invokeAsync(SchedulerPriority, F&&)` The priority can have 5 values: ```cpp enum class SchedulerPriority : int {...
Introduces the new type `margelo::nitro::PropName` that can now also hold a `Symbol`. This can be used to expose Methods/Properties on a `HybridObject` under a `Symbol` key instead of just plain...
Instead of looking up the `Object` constructor through `global`, then getting it's static `.create(..)` function, we can now directly use `jsi::Object::create(...)` from the native side which should be more efficient...
Adds the compiler flag `NITRO_MIN_LOG_LEVEL`. This flag can be used to set the minimum log level for the `NitroLogger` - if it is set to `0` (`Debug`), all logs will...
## Benchmarks 10.000 calls to `getValueFromJSCallbackAndWait`: ```ts const start = performance.now() let promises: Promise[] = [] for (let i = 0; i < ITERATIONS; i++) { promises.push( HybridTestObjectSwiftKotlin.getValueFromJSCallbackAndWait(() => Math.random()...