mirror of
https://github.com/status-im/react-native.git
synced 2025-02-18 20:36:41 +00: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:
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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user