Skip to content

Instantly share code, notes, and snippets.

View runjuu's full-sized avatar
👨‍🚀
I may be slow to respond.

runjuu

👨‍🚀
I may be slow to respond.
  • British Columbia, Canada
  • 03:46 (UTC -08:00)
  • LinkedIn in/runjuu
View GitHub Profile
type ObjectKey = keyof any
type DynamicColorStyles = Record<string, string>
type ColorFactory = string | (() => string)
import SwiftUI
import PlaygroundSupport
class UITestView: UIView {
init() {
super.init(frame: CGRect.zero)
let square = UIView()
square.backgroundColor = .gray
@runjuu
runjuu / RNAsyncStorage.swift
Created September 28, 2019 04:49
Using Swift to access data stored in react native's AsyncStorage
import Foundation
class RNAsyncStorage {
private static let RCTStorageDirectory = "RCTAsyncLocalStorage_V1"
private static let RCTManifestFileName = "manifest.json"
private static func getStorageDirectory() -> URL? {
return FileManager.default
.urls(