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
  • 04:03 (UTC +07:00)
  • X @pxlpd
View GitHub Profile
@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?
*/
@hirbod
hirbod / app-release.md
Last active August 22, 2023 06:21
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 18, 2024 21:28
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 January 2, 2024 18:42
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)
@nandorojo
nandorojo / DraggableScrollView.tsx
Last active April 19, 2024 07:12
Make a horizontal `ScrollView` draggable with a mouse (`react-native-web`)
import React, { ComponentProps } from 'react'
import { ScrollView } from 'react-native'
import { useDraggableScroll } from './use-draggable-scroll'
export const DraggableScrollView = React.forwardRef<
ScrollView,
ComponentProps<typeof ScrollView>
>(function DraggableScrollView(props, ref) {
const { refs } = useDraggableScroll<ScrollView>({
outerRef: ref,
@dodicandra
dodicandra / httpfcm.ts
Created April 4, 2021 10:21
fcm with http
export const httpFcm = async (body: any) => {
const options = {
headers: {
Authorization: auth.token, // tokan dari firebase message: setelan projek => clund messaging => token
'Content-Type': 'application/json'