Skip to content

Instantly share code, notes, and snippets.

View ddikodroid's full-sized avatar
🚀
rocket science

Ahmad Syarifuddin Randiko ddikodroid

🚀
rocket science
  • Central Bank of Indonesia
  • Jakarta, Indonesia
  • 08:41 (UTC +07:00)
View GitHub Profile
import BottomSheet, { BottomSheetView } from '@gorhom/bottom-sheet';
import { StyleSheet, Text, useWindowDimensions } from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import Animated, { interpolate, useAnimatedStyle, useSharedValue } from 'react-native-reanimated';
import { SafeAreaProvider, useSafeAreaInsets } from "react-native-safe-area-context";
function App() {
const dimensions = useWindowDimensions();
const insets = useSafeAreaInsets();
@devethan
devethan / Sample.tsx
Created March 11, 2024 21:49
iOS context menu in React-native
import React, {useState} from 'react';
import {
Animated,
Image,
ImageBackground,
StyleSheet,
Pressable,
Text,
View,
} from 'react-native';
@gd3kr
gd3kr / script.js
Created February 15, 2024 06:30
Download a JSON List of twitter bookmarks
/*
the twitter api is stupid. it is stupid and bad and expensive. hence, this.
Literally just paste this in the JS console on the bookmarks tab and the script will automatically scroll to the bottom of your bookmarks and keep a track of them as it goes.
When finished, it downloads a JSON file containing the raw text content of every bookmark.
for now it stores just the text inside the tweet itself, but if you're reading this why don't you go ahead and try to also store other information (author, tweetLink, pictures, everything). come on. do it. please?
*/
@huynguyencong
huynguyencong / #BuildiOSWithGitHubAction.md
Last active July 18, 2025 22:55
Script to build iOS and deploy it to TestFlight using GitHub action

When merging code to build/test-flight branch, it is built and uploaded to TestFlight automatically by GitHub Action.

Set up/update the following secrets:

  • CERTIFICATES_FILE_BASE64: Base64 of the App Store distribution certificate.
  • CERTIFICATES_PASSWORD: App Store distribution certificate password.
  • APPSTORE_ISSUER_ID: App Store Connect API key's issuer ID.
  • APPSTORE_KEY_ID: App Store Connect API key's key ID.
  • APPSTORE_PRIVATE_KEY: App Store Connect API key's private key (raw p8 file).
@hirbod
hirbod / app-release.md
Last active March 12, 2025 20:12
How to get your App through the App/Play store safely

How to Successfully Publish Your App on the App Store or Google Play

As someone who has released many apps starting in 2015 using frameworks such as Cordova and Ionic, and more recently using React Native and Expo, I have learned that the rules for publishing apps can change frequently and can sometimes be challenging to navigate. With that in mind, I want to provide a brief guide to help others navigate the process. While this guide may not cover every aspect of publishing an app, it does cover general tips and information that should be useful for anyone looking to release their app on the App Store or Google Play.

Metadata

Keywords, Description, Screenshots, App Name, Promo Videos

There are significant differences between Apple and Google when it comes to metadata. Apple is generally stricter than Google, so it is advisable to follow Apple's guidelines to ensure the best chances of success on both platforms. Here are some tips to keep in mind:

  1. Keep your screenshots and promo videos separat
import React, {useState} from 'react';
import {View, SafeAreaView, ScrollView, Text, StatusBar} from 'react-native';
import {MotiView} from 'moti';
import {
useAnimatedProps,
useDerivedValue,
withTiming,
interpolateColor,
} from 'react-native-reanimated';
import {TouchableOpacity} from 'react-native-gesture-handler';
@insertish
insertish / React Native.md
Last active April 15, 2025 02:14
Configure React Native with Typescript, Vite.js for react-native-web and Storybook.
@oskarhertzman
oskarhertzman / package.json
Last active January 24, 2024 18:31
React Native scripts
"scripts": {
"start": "watchman watch-del-all && react-native start --reset-cache",
"react:link": "react-native link",
"android": "react-native run-android",
"android:shake": "adb shell input keyevent 82",
"android:clean": "cd android && ./gradlew clean && ./gradlew cleanBuildCache && cd .. ",
"android:build:store:aab": "cd android && ./gradlew bundleStoreRelease && cd ..",
"android:build:aab": "cd android && ./gradlew bundleRelease && cd ..",
"android:build:apk": "cd android && ./gradlew assembleStoreRelease && cd ..",
"android:release": "react-native run-android --variant storeRelease",
@markerikson
markerikson / job-search-questions.md
Last active August 2, 2024 18:59
Assorted questions to ask companies in interviews

Questions

Company

  • company location / remote?
  • what project management method?
  • good and bad company culture?
  • performance reviews?
  • what's the path to profitability?
@martsie
martsie / useReduceMotion.ts
Created January 31, 2022 02:51
useReduceMotion hook for ReactNative
import { useEffect, useState } from 'react'
import { AccessibilityInfo } from 'react-native'
// Adapted from https://github.com/infiniteluke/react-reduce-motion/blob/master/src/targets/native/index.js
export const useReduceMotion = (): boolean => {
const [shouldReduceMotion, setShouldReduceMotion] = useState(false)
useEffect(() => {
const handleChange = (isReduceMotionEnabled: boolean): void => {
setShouldReduceMotion(isReduceMotionEnabled)