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 React, {useEffect, useRef, useState} from 'react'; | |
import {FlatList, I18nManager} from 'react-native'; | |
/** | |
* HorizontalRTLSupportFlatList | |
* | |
* This component is a custom wrapper around React Native's FlatList to add support | |
* for Right-to-Left (RTL) layouts when rendering horizontal lists. It automatically | |
* handles reversing the scroll direction and item order in RTL mode while maintaining | |
* the correct visual order of list items. Additionally, it includes logic to manage |
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
These values are returned as the error code property of an NSError object with the domain “NSURLErrorDomain”. | |
Declaration | |
SWIFT | |
var NSURLErrorUnknown: Int { get } | |
var NSURLErrorCancelled: Int { get } | |
var NSURLErrorBadURL: Int { get } | |
var NSURLErrorTimedOut: Int { get } | |
var NSURLErrorUnsupportedURL: Int { get } | |
var NSURLErrorCannotFindHost: Int { get } |
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
/** | |
-NOTE: | |
After AVPlayerItem faces an error you can create CoreMedia Error from the underlying Error inside AVPlayerItem error. | |
With the `CoreMediaError` enum, you can convert errors to more readable ones,handle AVPlayerItem Common errors, | |
and show the proper messages to your users. | |
**/ | |
public enum CoreMediaError:Error { |
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
BIG iOS URL SCHEME LIST | |
HAD TO MAKE A DROPBOX FILE BECAUSE THIS LIST WAS TOO LONG TO POST IN THE COMMENTS OR NOT MAKE THE WORKFLOW APP TAKE FOREVER TO READ IT. | |
☠JAILBREAK/SYSTEM APPS | |
-------------------------- | |
activator:// | |
itms-apps:// | |
itms-services:// |
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
internal let DEFAULT_MIME_TYPE = "application/octet-stream" | |
internal let mimeTypes = [ | |
"html": "text/html", | |
"htm": "text/html", | |
"shtml": "text/html", | |
"css": "text/css", | |
"xml": "text/xml", | |
"gif": "image/gif", | |
"jpeg": "image/jpeg", |