Skip to content

Instantly share code, notes, and snippets.

View ps73's full-sized avatar
🏖️
Humming…

Phil ps73

🏖️
Humming…
View GitHub Profile
@ps73
ps73 / README.md
Last active March 12, 2026 15:09
Ort / onnxruntime-react-native 1.24.3 bugs on Android

onnxruntime-react-native Android Fix

During development of Zyke App for the Zyke Band we ran in these issues with onnxruntime-react-native.

Problem

onnxruntime-react-native 1.24.3 failed on Android (in our case with Expo 55) with two issues:

  1. Gradle 9 build failureVersionNumber class was removed in Gradle 9, breaking build.gradle line 250 (Expo 55 uses React-Native 0.83.x, so this check is not required)
  2. Runtime crashNativeModules.Onnxruntime was null, causing Cannot read property 'install' of null at startup
@ps73
ps73 / download.js
Created August 4, 2023 13:38
Postbox Comdirect alle Dateien downloaden
// Mit folgendem Script kannst du alle Dokumente innerhalb einer Seite aus der Comdirect Postbox downladen
// Öffne die Developer Konsole deines Browsers mit "rechter Maustaste" => "Seite untersuchen"
// Anschließend oben auf Konsole bzw. Console klicken und dort folgendes eingeben:
let ahrefs = Array.from(document.querySelectorAll('table .layer__content.layer-tooltip__content a[data-tid="downloadLink"]'));
let downloadFile = (index) => {
const el = ahrefs[index];
el.click();
setTimeout(() => {
if (index < ahrefs.length - 1) downloadFile(index + 1);
}, 150);
@ps73
ps73 / react-native+0.63.3.patch
Last active July 21, 2021 18:42
React Native 0.63.3 iOS Modal Swipe Down Bugfix
diff --git a/node_modules/react-native/React/Views/RCTModalHostView.h b/node_modules/react-native/React/Views/RCTModalHostView.h
index 4e61886..2b8b6c0 100644
--- a/node_modules/react-native/React/Views/RCTModalHostView.h
+++ b/node_modules/react-native/React/Views/RCTModalHostView.h
@@ -17,7 +17,7 @@
@protocol RCTModalHostViewInteractor;
-@interface RCTModalHostView : UIView <RCTInvalidating>
+@interface RCTModalHostView : UIView <RCTInvalidating, UIAdaptivePresentationControllerDelegate>