mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-08 22:42:05 +08:00
Always use soloader. Catching exception and re-trying hides errors
Reviewed By: lexs Differential Revision: D4243906 fbshipit-source-id: e4d691c9c49f3b9316f67e39b9f277657d78fb3c
This commit is contained in:
committed by
Facebook Github Bot
parent
c284e0cd7a
commit
f1a5233fd2
@@ -21,13 +21,7 @@ import com.facebook.soloader.SoLoader;
|
||||
public class CSSNode implements CSSNodeAPI<CSSNode> {
|
||||
|
||||
static {
|
||||
try {
|
||||
SoLoader.loadLibrary("csslayout");
|
||||
} catch (Exception ignored) {
|
||||
// The user probably didn't call SoLoader.init(). Fall back to System.loadLibrary() instead.
|
||||
System.out.println("Falling back to System.loadLibrary()");
|
||||
System.loadLibrary("csslayout");
|
||||
}
|
||||
SoLoader.loadLibrary("csslayout");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user