Skip to content

Instantly share code, notes, and snippets.

View kennydee's full-sized avatar

Kenny Dits @kenny_dee kennydee

  • LeLivreScolaire
  • Lyon, France
View GitHub Profile
@kennydee
kennydee / Fastfile
Last active September 23, 2018 18:49
Fastfile for staging environment with Appetize.io on React Native (iOs & Android), with statuses update on Github Enterprise
require 'httparty'
fastlane_version "1.95.0"
default_platform :ios
before_all do
# put here your token and iOs scheme app
ENV["GITHUB_TOKEN"] = "---"
ENV["APPETIZE_TOKEN"] = "---"
ENV["APP_IOS_SCHEME"] = "---"
@kennydee
kennydee / styled.js
Created May 23, 2017 04:07
Styled component without styled components for React Native
import React, { PropTypes } from 'react';
import * as theme from '../theme';
const styled = (Component, styler) => props => {
const propsWithTheme = { ...props, theme };
const style = typeof styler === 'function' ? styler(propsWithTheme) : styler;
// React doesn't support "forwarding" ref for now
if (propsWithTheme.innerRef) {