We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d98755 commit 1d49f4aCopy full SHA for 1d49f4a
1 file changed
example/android/app/src/main/java/in/juspay/hypersdkreact/example/MainApplication.java
@@ -47,7 +47,21 @@ protected String getJSMainModuleName() {
47
48
@Override
49
protected boolean isNewArchEnabled() {
50
- return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
+ if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
51
+ return true;
52
+ }
53
+
54
+ String version = BuildConfig.REACT_NATIVE_VERSION;
55
+ String[] parts = version.split("\\.");
56
57
+ if (parts.length < 2) {
58
+ return false;
59
60
61
+ int major = Integer.parseInt(parts[0]);
62
+ int minor = Integer.parseInt(parts[1]);
63
64
+ return major > 0 || (major == 0 && minor >= 82);
65
}
66
67
0 commit comments