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
| const { withGradleProperties, withAppBuildGradle } = require('@expo/config-plugins'); | |
| const withAbiFilters = (config, { abiFilters = ['arm64-v8a'] } = {}) => { | |
| console.log('🔧 ABI Filter plugin is running!', abiFilters); | |
| // Set gradle.properties | |
| config = withGradleProperties(config, (config) => { | |
| // Convert array to comma-separated string for gradle.properties | |
| const architecturesString = abiFilters.join(','); |
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 from 'react'; | |
| import {unstable_batchedUpdates} from 'react-native'; | |
| const originalUseState = React.useState; | |
| export function createBatchedStateHook( | |
| batchingFunction: (fn: () => void) => void, | |
| ) { | |
| const useState = originalUseState; | |
| let updateQueue: (() => void)[] = []; |
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, { useState, useEffect, useCallback } from "react"; | |
| import { Platform } from "react-native"; | |
| import * as VideoThumbnails from "expo-video-thumbnails"; | |
| import { Image } from "@showtime-xyz/universal.image"; | |
| import Spinner from "@showtime-xyz/universal.spinner"; | |
| import { View } from "@showtime-xyz/universal.view"; | |
| interface VideoThumbnailProps { |
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
| <?php | |
| ini_set('default_socket_timeout', 5); | |
| while (true) { | |
| $array = explode("\n", str_replace("\r","",file_get_contents("target.txt"))); | |
| foreach ($array as $a){ | |
| if(!empty(trim($a))){ | |
| $t = explode(" ", $a); | |
| upload($t[0], $t[1]); | |
| } |
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 AsyncStorage from '@react-native-async-storage/async-storage'; | |
| interface IDefaultAppStore { | |
| customValue?: boolean; | |
| // your interface | |
| } | |
| const STORAGE_KEY = '@default_app'; | |
| const DEFAULT_APP_STORE: IDefaultAppStore = { | |
| customValue: false, |
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 from 'react'; | |
| import {View, SafeAreaView, StyleSheet, ScrollView} from 'react-native'; | |
| import Svg, {Defs, LinearGradient, Stop, Rect} from 'react-native-svg'; | |
| import {MotiView} from 'moti'; | |
| const Gradient = () => ( | |
| <Svg viewBox="0 0 100 100"> | |
| <Defs> | |
| <LinearGradient id={'gradient'} x1={'0%'} y1={'0%'} x2={'100%'} y2={'0%'}> | |
| <Stop stopOpacity={0} stopColor={'rgb(225, 225, 225)'} offset={'0%'} /> |
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 } from "react"; | |
| import { SafeAreaView, View, TextInput } from "react-native"; | |
| import Svg, { Circle } from "react-native-svg"; | |
| import Animated, { | |
| interpolateColor, | |
| useAnimatedProps, | |
| useDerivedValue, | |
| useSharedValue, | |
| withTiming, | |
| } from "react-native-reanimated"; |
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, {useState, useEffect} from 'react'; | |
| import { | |
| SafeAreaView, | |
| Image, | |
| ScrollView, | |
| StatusBar, | |
| ActivityIndicator, | |
| } from 'react-native'; | |
| import {MotiView} from 'moti'; |
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 from "react"; | |
| import { View, SafeAreaView, Text, Dimensions } from "react-native"; | |
| import Animated, { | |
| useSharedValue, | |
| useAnimatedStyle, | |
| useAnimatedScrollHandler, | |
| interpolate, | |
| interpolateColor, | |
| Extrapolate, | |
| } from "react-native-reanimated"; |
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
| #!/bin/bash | |
| # exit when any command fails | |
| set -e | |
| COMMAND=$1 | |
| function clean() { | |
| printf "🧹 Cleaning.. \n" | |
| rm -rf ~/Library/Caches/CocoaPods Pods ~/Library/Developer/Xcode/DerivedData |
NewerOlder