Skip to content

Instantly share code, notes, and snippets.

View hijamoya's full-sized avatar

Jam Hsu hijamoya

View GitHub Profile
class Expandable extends Component{
constructor(props){
super(props);
this.icons = {
'up' : require('./images/up.png'),
'down' : require('./images/up.png')
};
this.state = {
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Image,
Text,
ListView,
Navigator,
View
} from 'react-native';
@hijamoya
hijamoya / MockFirebase.swift
Last active October 30, 2017 21:11
RxFirebase is a wrapper for warping Firebase APIs to Reactive Programming in swift
import Firebase
class MockFirebase: Firebase {
let mockError = NSError(domain: "This is a test error", code: 0, userInfo: nil)
let mockSnapshot = FDataSnapshot()
var makeApiFail = false
var observerRomoved = false