/// /// JHybridOmniViewStateUpdater.hpp /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// #pragma once #ifndef RN_SERIALIZABLE_STATE #error Omni was compiled without the 'RN_SERIALIZABLE_STATE' flag. This flag is required for Nitro Views - set it in your CMakeLists! #endif #include #include #include #include #include #include #include "JHybridOmniViewSpec.hpp" #include "views/HybridOmniViewComponent.hpp" namespace margelo::nitro::omni::views { using namespace facebook; class JHybridOmniViewStateUpdater final: public jni::JavaClass { public: static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/omni/views/HybridOmniViewStateUpdater;"; public: static void updateViewProps(jni::alias_ref /* class */, jni::alias_ref view, jni::alias_ref stateWrapperInterface); public: static void registerNatives() { // Register JNI calls javaClassStatic()->registerNatives({ makeNativeMethod("updateViewProps", JHybridOmniViewStateUpdater::updateViewProps), }); // Register React Native view component descriptor auto provider = react::concreteComponentDescriptorProvider(); auto providerRegistry = react::CoreComponentsRegistry::sharedProviderRegistry(); providerRegistry->add(provider); } }; } // namespace margelo::nitro::omni::views