start adding payment

This commit is contained in:
Thomas Demirdjian
2025-11-04 14:46:12 +01:00
parent 02a2333a41
commit 4bb083ea46
24 changed files with 3507 additions and 7604 deletions
+11 -11
View File
@@ -1,13 +1,15 @@
import '@expo/metro-runtime';
import { registerRootComponent } from 'expo';
import "@expo/metro-runtime";
import { registerRootComponent } from "expo";
import App from "./App";
// Inject minimal global CSS and a small setNativeProps polyfill for web
if (typeof document !== 'undefined') {
document.documentElement?.setAttribute('translate', 'no');
document.body?.setAttribute('translate', 'no');
if (typeof document !== "undefined") {
document.documentElement?.setAttribute("translate", "no");
document.body?.setAttribute("translate", "no");
const style = document.createElement('style');
style.setAttribute('data-inline-global', 'true');
const style = document.createElement("style");
style.setAttribute("data-inline-global", "true");
style.innerHTML = `
html, body, #root { height: 100%; }
body { margin: 0; }
@@ -18,14 +20,14 @@ if (typeof document !== 'undefined') {
document.head.appendChild(style);
const proto = window.HTMLElement && window.HTMLElement.prototype;
if (proto && typeof proto.setNativeProps !== 'function') {
if (proto && typeof proto.setNativeProps !== "function") {
proto.setNativeProps = function (nativeProps = {}) {
try {
const { style: s, pointerEvents, ...rest } = nativeProps || {};
if (pointerEvents != null) {
this.style.pointerEvents = pointerEvents;
}
if (s && typeof s === 'object') {
if (s && typeof s === "object") {
for (const k in s) {
if (Object.prototype.hasOwnProperty.call(s, k)) {
try {
@@ -46,6 +48,4 @@ if (typeof document !== 'undefined') {
}
}
import App from './App';
registerRootComponent(App);