mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix NoSuchMethodError in CoreComponentsRegistry class
Summary: This diff fixes a NoSuchMethodError in CoreComponentsRegistry class. changelog: [internal] internal Reviewed By: JoshuaGross Differential Revision: D23043627 fbshipit-source-id: bd87ba560cc57ca345bf694b457be09097c433fe
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b628d4f5d5
commit
c03b7dd772
@@ -23,6 +23,7 @@ public class ComponentFactory {
|
||||
@DoNotStrip
|
||||
private static native HybridData initHybrid();
|
||||
|
||||
@DoNotStrip
|
||||
public ComponentFactory() {
|
||||
mHybridData = initHybrid();
|
||||
}
|
||||
|
||||
@@ -7,19 +7,25 @@
|
||||
|
||||
package com.facebook.react.fabric;
|
||||
|
||||
import com.facebook.jni.HybridData;
|
||||
import com.facebook.proguard.annotations.DoNotStrip;
|
||||
import com.facebook.soloader.SoLoader;
|
||||
|
||||
@DoNotStrip
|
||||
public class CoreComponentsRegistry extends ComponentRegistry {
|
||||
|
||||
static {
|
||||
SoLoader.loadLibrary("fabricjni");
|
||||
FabricSoLoader.staticInit();
|
||||
}
|
||||
|
||||
@DoNotStrip
|
||||
private static native HybridData initHybrid();
|
||||
|
||||
@DoNotStrip
|
||||
private CoreComponentsRegistry(ComponentFactory componentFactory) {
|
||||
super(componentFactory);
|
||||
}
|
||||
|
||||
@DoNotStrip
|
||||
public static CoreComponentsRegistry register(ComponentFactory componentFactory) {
|
||||
return new CoreComponentsRegistry(componentFactory);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user