Skip to content

Instantly share code, notes, and snippets.

View dudeinthemirror's full-sized avatar

Luc Masalar dudeinthemirror

View GitHub Profile
// Higher Order Component for CodePush
// -----------------------------------
// in a file called utils/withCodePush.ts
// -----------------------------------
import React from 'react';
import CodePush from 'react-native-code-push';
export const codePushSync = () => {
CodePush.sync({
#! /bin/bash
# shellcheck disable=SC2086
# shellcheck disable=SC2162
# This script provides a workaround for having dependent modules which
# have not been migrated to AndroidX
# see: https://developer.android.com/jetpack/androidx/migrate
# inspired from https://gist.github.com/dlew/5db1b780896bbc6f542e7c00a11db6a0
SCRIPTS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
android.arch.core.executor.AppToolkitTaskExecutor androidx.arch.core.executor.AppToolkitTaskExecutor
android.arch.core.executor.ArchTaskExecutor androidx.arch.core.executor.ArchTaskExecutor
android.arch.core.executor.DefaultTaskExecutor androidx.arch.core.executor.DefaultTaskExecutor
android.arch.core.executor.JunitTaskExecutorRule androidx.arch.core.executor.JunitTaskExecutorRule
android.arch.core.executor.TaskExecutor androidx.arch.core.executor.TaskExecutor
android.arch.core.executor.TaskExecutorWithFakeMainThread androidx.arch.core.executor.TaskExecutorWithFakeMainThread
android.arch.core.executor.testing.CountingTaskExecutorRule androidx.arch.core.executor.testing.CountingTaskExecutorRule
android.arch.core.executor.testing.InstantTaskExecutorRule androidx.arch.core.executor.testing.InstantTaskExecutorRule
android.arch.core.internal.FastSafeIterableMap androidx.arch.core.internal.FastSafeIterableMap
android.arch.core.internal.SafeIterableMap androidx.arch.core.internal.SafeIterableMap
import React from 'react';
import ReactNative from 'react-native';
import Camera from 'react-native-camera'
import LightboxView from 'killr/js/components/LightboxView.js'
import Styles from 'killr/js/utils/Styles.js'
let Icon = Styles.Icon
const {
@dudeinthemirror
dudeinthemirror / react-native-camera_err.logcat
Created June 17, 2016 21:19
react-native-camera errors
06-17 17:11:35.325 17252-17252/com.dudeinthemirror.killr I/dalvikvm: Could not find method android.view.ViewGroup.<init>, referenced from method com.lwansbrough.RCTCamera.RCTCameraView.<init>
06-17 17:11:35.325 17252-17252/com.dudeinthemirror.killr W/dalvikvm: VFY: unable to resolve direct method 19180: Landroid/view/ViewGroup;.<init> (Landroid/content/Context;Landroid/util/AttributeSet;II)V
06-17 17:11:35.325 17252-17252/com.dudeinthemirror.killr D/dalvikvm: VFY: replacing opcode 0x70 at 0x0048
06-17 17:11:35.325 17252-17252/com.dudeinthemirror.killr I/dalvikvm: Could not find method android.view.View.drawableHotspotChanged, referenced from method com.lwansbrough.RCTCamera.RCTCameraView.access$super
06-17 17:11:35.325 17252-17252/com.dudeinthemirror.killr W/dalvikvm: VFY: unable to resolve virtual method 18723: Landroid/view/View;.drawableHotspotChanged (FF)V
06-17 17:11:35.325 17252-17252/com.dudeinthemirror.killr D/dalvikvm: VFY: replacing opcode 0x6f at 0x0097
06-17 17:11:35.325 17252-17252/com.dudeinthem