start adding payment
This commit is contained in:
+11
-11
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user