react-native-vroom-chart 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/android/CMakeLists.txt +12 -2
- package/android/README.md +16 -6
- package/android/build.gradle +10 -0
- package/android/src/main/cpp/OnLoad.cpp +10 -0
- package/android/src/main/cpp/VroomChartJsiBindings.cpp +35 -0
- package/android/src/main/cpp/VroomChartJsiBindings.h +27 -0
- package/android/src/main/java/com/vroom/chart/VroomChartModule.kt +15 -11
- package/cpp/VroomJsiInstaller.cpp +6 -0
- package/ios/README.md +17 -5
- package/ios/VroomChartModule.h +3 -6
- package/ios/VroomChartModule.mm +17 -23
- package/lib/index.js +4 -3
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +4 -3
- package/lib/index.mjs.map +1 -1
- package/package.json +9 -9
- package/react-native-vroom-chart.podspec +1 -1
- package/src/NativeVroomChart.ts +7 -4
- package/src/useChartCore.ts +10 -3
- package/android/src/main/cpp/VroomChartJni.cpp +0 -24
package/lib/index.mjs
CHANGED
|
@@ -454,10 +454,11 @@ var EMPTY_FOOTPRINTS = footprintsToSpec({ prints: [] });
|
|
|
454
454
|
var installed = false;
|
|
455
455
|
function ensureInstalled() {
|
|
456
456
|
if (installed) return;
|
|
457
|
-
|
|
458
|
-
if (!ok) throw new Error("VroomChartModule.install() returned false");
|
|
457
|
+
NativeVroomChart_default.install();
|
|
459
458
|
if (typeof globalThis.VroomChartJSI === "undefined") {
|
|
460
|
-
throw new Error(
|
|
459
|
+
throw new Error(
|
|
460
|
+
"global.VroomChartJSI is undefined \u2014 VroomChartModule did not install its JSI bindings. This requires react-native >= 0.78 with the New Architecture enabled."
|
|
461
|
+
);
|
|
461
462
|
}
|
|
462
463
|
installed = true;
|
|
463
464
|
}
|