This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { ReactElement } from "react"; | |
| import { cloneElement, memo, useCallback } from "react"; | |
| import { AlertV2 } from "@/components/AlertV2/alertV2Helpers"; | |
| export interface DestructiveActionGuardProps { | |
| children: ReactElement<{ onPress: () => void }>; | |
| confirmationTitle?: string; | |
| confirmationDescription?: string; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { ReactElement } from "react"; | |
| import { cloneElement, memo, useCallback } from "react"; | |
| import { AlertV2 } from "@/components/AlertV2/alertV2Helpers"; | |
| export interface DestructiveActionGuardProps { | |
| children: ReactElement<{ onPress: () => void }>; | |
| confirmationTitle?: string; | |
| confirmationDescription?: string; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // app/lib/SVGProduct.js | |
| function getImageFileFromSVG(svgOpts, name) { | |
| var file = Ti.Filesystem.getFile(Ti.Filesystem.applicationCacheDirectory, | |
| Ti.Utils.md5HexDigest(JSON.stringify(svgOpts))); | |
| if (!file.exists()) { | |
| var SVG = require('com.geraudbourdin.svgview'); | |
| if (!file.write(SVG.createView(svgOpts).toImage())) { | |
| Ti.API.error("Can't save to file. Product:", name); | |
| return null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Hyperloop = require('hyperloop'); | |
| var UIView = require('UIView'); | |
| var CGRect = require('CGRect'); | |
| var CGPoint = require('CGPoint'); | |
| var UIColor = require('UIColor'); | |
| var UIBezierPath = require('UIBezierPath'); | |
| function DEGREES_TO_RADIANS(angle) { return (Number(angle) / 180.0 * Math.PI) }; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Titanium.Media.openPhotoGallery({ | |
| success:function(event){ | |
| var myImage = event.media; | |
| var xhr = Titanium.Network.createHTTPClient(); | |
| xhr.open('POST','http:// ------ /uploads.php'); | |
| xhr.onerror = function(e){alert(e.error);}; | |
| xhr.setTimeout(200000); |