This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.matteo.firebase_recycleview; | |
import android.support.annotation.Nullable; | |
import android.support.v7.widget.RecyclerView; | |
import android.util.Log; | |
import android.view.ViewGroup; | |
import com.firebase.client.ChildEventListener; | |
import com.firebase.client.DataSnapshot; | |
import com.firebase.client.FirebaseError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ "keys": ["f12"], "command": "reindent", "args": {"single_line": false} }, | |
{ "keys": ["ctrl+space"], "command": "auto_complete" }, | |
{ "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context": | |
[ | |
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" }, | |
{ "key": "auto_complete_visible", "operator": "equal", "operand": false }, | |
{ "key": "setting.tab_completion", "operator": "equal", "operand": true } | |
] | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { PropTypes } from 'react' | |
import { Platform, View, TouchableNativeFeedback, TouchableOpacity } from 'react-native' | |
const IS_ANDROID = Platform.OS === 'android' | |
const IS_RIPPLE_EFFECT_SUPPORTED = Platform.Version >= 21 && IS_ANDROID | |
const TouchableView = ({ isRippleEnabled, children, style, ...props }) => { | |
if (IS_RIPPLE_EFFECT_SUPPORTED && !isRippleEnabled) { | |
const background = TouchableNativeFeedback.Ripple(null, false) | |
return ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @providesModule LoadingSpinner | |
*/ | |
import React, { ActivityIndicatorIOS, Platform, ProgressBarAndroid, StyleSheet } from 'react-native' | |
const IS_ANDROID = Platform.OS === 'android' | |
export default ({ ...props }) => IS_ANDROID | |
? <ProgressBarAndroid style={styles.spinner} {...props} /> | |
: <ActivityIndicatorIOS style={styles.spinner} {...props} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MDL-style Checkbox component. | |
// | |
// - @see [MDL Checkbox](http://www.getmdl.io/components/index.html#toggles-section/checkbox) | |
// - [Props](#props) | |
// - [Defaults](#defaults) | |
// - [Built-in builders](#builders) | |
// | |
// Created by ywu on 15/12/13. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import createLogger from 'redux-logger' | |
// Seamless-Immutable logger cleanup | |
const stateTransformer = (state) => { | |
if (typeof state === 'object' && state !== null && Object.keys(state).length) { | |
let newState = {} | |
for (var i of Object.keys(state)) { | |
if (state[i].asMutable) newState[i] = state[i].asMutable({ deep: true }) | |
else newState[i] = state[i] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Redux navigations tore | |
{ | |
key: '1', | |
index: 0, | |
children: [{ key: 'museumList', title: 'I musei' }], | |
isDrawerOpen: false | |
} | |
// Navigation structure |
OlderNewer