Skip to content

Instantly share code, notes, and snippets.

View Drzaln's full-sized avatar
:octocat:
Building Mobile Apps

Doddy Rizal Novianto Drzaln

:octocat:
Building Mobile Apps
  • Tangerang, Indonesia.
View GitHub Profile
@Randall71
Randall71 / WithAbiFilters.js
Created June 20, 2025 18:08
Config Plugin to just build expo app for specific architectures of processor (armeabi-v7a, arm64-v8a, x86, x86-64)
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(',');
@naqvitalha
naqvitalha / BatchedSetState.ts
Last active September 11, 2025 23:54
Batched setState
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)[] = [];
@hirbod
hirbod / VideoThumbnail.tsx
Created November 28, 2023 17:10
expo-video-thumbnails for iOS, Android and Web
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 {
@ibnux
ibnux / serangpenipu.php
Last active March 27, 2024 15:53
php script untuk serang penipu yang pake bot telegram, pastikan ada gambar tai.jpg di sebelah filenya
<?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]);
}
@rbayuokt
rbayuokt / AsyncStoreService.ts
Last active January 4, 2023 10:00
AsyncStore utils
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,
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%'} />
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";
import React, {useState, useEffect} from 'react';
import {
SafeAreaView,
Image,
ScrollView,
StatusBar,
ActivityIndicator,
} from 'react-native';
import {MotiView} from 'moti';
import React from "react";
import { View, SafeAreaView, Text, Dimensions } from "react-native";
import Animated, {
useSharedValue,
useAnimatedStyle,
useAnimatedScrollHandler,
interpolate,
interpolateColor,
Extrapolate,
} from "react-native-reanimated";
@pzatorski
pzatorski / react-native-setup-ios.sh
Created May 7, 2022 20:03
Clean a React Native project (iOS)
#!/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