Skip to content

Commit

Permalink
chore: Run nitrogen
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Jan 21, 2025
1 parent 7ddfc74 commit d9ca70b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ int initialize(JavaVM* vm) {
margelo::nitro::image::JHybridBaseSpec::registerNatives();
margelo::nitro::image::JHybridChildSpec::registerNatives();
margelo::nitro::image::JHybridTestViewSpec::registerNatives();
#if REACT_NATIVE_VERSION_MINOR >= 78
margelo::nitro::image::views::JHybridTestViewStateUpdater::registerNatives();
#endif

// Register Nitro Hybrid Objects
HybridObjectRegistry::registerHybridObjectConstructor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
///

#include "JHybridTestViewStateUpdater.hpp"
#include <NitroModules/NitroDefines.hpp>
#if REACT_NATIVE_VERSION_MINOR >= 78

#include "views/HybridTestViewComponent.hpp"
#include <NitroModules/NitroDefines.hpp>

namespace margelo::nitro::image::views {

Expand Down Expand Up @@ -39,5 +37,3 @@ void JHybridTestViewStateUpdater::updateViewProps(jni::alias_ref<jni::JClass>,
}

} // namespace margelo::nitro::image::views

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@

#pragma once

#include <NitroModules/NitroDefines.hpp>
#if REACT_NATIVE_VERSION_MINOR >= 78

#include <fbjni/fbjni.h>
#include <NitroModules/NitroDefines.hpp>
#include <react/fabric/StateWrapperImpl.h>
#include "JHybridTestViewSpec.hpp"

Expand All @@ -36,5 +34,3 @@ class JHybridTestViewStateUpdater: jni::HybridClass<JHybridTestViewStateUpdater>
};

} // namespace margelo::nitro::image::views

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
///

#import "HybridTestViewComponent.hpp"
#include <NitroModules/NitroDefines.hpp>
#if REACT_NATIVE_VERSION_MINOR >= 78

#import <memory>
#import <NitroModules/NitroDefines.hpp>
#import <react/renderer/componentregistry/ComponentDescriptorProvider.h>
#import <React/RCTViewComponentView.h>
#import <React/RCTComponentViewFactory.h>
Expand Down Expand Up @@ -89,5 +88,3 @@ - (void) updateProps:(const react::Props::Shared&)props
}

@end

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
///

#include "HybridTestViewComponent.hpp"
#include <NitroModules/NitroDefines.hpp>
#if REACT_NATIVE_VERSION_MINOR >= 78

#include <string>
#include <exception>
#include <utility>
#include <NitroModules/NitroDefines.hpp>
#include <NitroModules/JSIConverter.hpp>
#include <react/renderer/core/RawValue.h>
#include <react/renderer/core/ShadowNode.h>
Expand Down Expand Up @@ -77,5 +76,3 @@ namespace margelo::nitro::image::views {
}

} // namespace margelo::nitro::image::views

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@

#pragma once

#include <NitroModules/NitroDefines.hpp>
#if REACT_NATIVE_VERSION_MINOR >= 78

#include <optional>
#include <NitroModules/NitroDefines.hpp>
#include <NitroModules/NitroHash.hpp>
#include <NitroModules/CachedProp.hpp>
#include <react/renderer/core/ConcreteComponentDescriptor.h>
Expand Down Expand Up @@ -96,7 +94,3 @@ namespace margelo::nitro::image::views {
/* The actual view for "TestView" needs to be implemented in platform-specific code. */

} // namespace margelo::nitro::image::views

#else
#warning "View Component 'HybridTestView' will be unavailable in React Native, because it requires React Native 78 or higher."
#endif

0 comments on commit d9ca70b

Please sign in to comment.