mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
Most of Android changes for Fabric and bump of FabricExample to RN 0.69.2. iOS and JS changes are available in #1821. The most notable change on Android is adding methods to components that accept String values of each NumberProp instead of Dynamic. Another change is changed structure of RenderableViewManager.java since we needed to abstract methods that belong only to components inheriting from VirtualView in order to be able to properly override them in their children.
34 lines
883 B
C++
34 lines
883 B
C++
#pragma once
|
|
|
|
#include <ComponentFactory.h>
|
|
#include <fbjni/fbjni.h>
|
|
#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
|
|
#include <react/renderer/componentregistry/ComponentDescriptorRegistry.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
class RNSvgComponentsRegistry
|
|
: public facebook::jni::HybridClass<RNSvgComponentsRegistry> {
|
|
public:
|
|
constexpr static auto kJavaDescriptor =
|
|
"Lcom/horcrux/svg/RNSvgComponentsRegistry;";
|
|
|
|
static void registerNatives();
|
|
|
|
RNSvgComponentsRegistry(ComponentFactory *delegate);
|
|
|
|
private:
|
|
friend HybridBase;
|
|
|
|
static std::shared_ptr<ComponentDescriptorProviderRegistry const> sharedProviderRegistry();
|
|
|
|
const ComponentFactory *delegate_;
|
|
|
|
static jni::local_ref<jhybriddata> initHybrid(
|
|
jni::alias_ref<jclass>,
|
|
ComponentFactory *delegate);
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|