Skip to content

Instantly share code, notes, and snippets.

View callmephilip's full-sized avatar

Philip Nuzhnyi callmephilip

View GitHub Profile
import React, { Component } from 'react';
import { TabBarIOS, NavigationExperimental } from 'react-native';
import Feed from '../Feed';
import { connect } from 'react-redux';
const { Reducer: NavigationReducer } = NavigationExperimental;
const { JumpToAction } = NavigationReducer.TabsReducer;
class ApplicationTabs extends Component {
_renderTabContent(tab) {
import { NavigationExperimental } from 'react-native';
const { Reducer: NavigationReducer } = NavigationExperimental;
const simpleIcon = {
uri: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABLCAQAAACSR7JhAAADtUlEQVR4Ac3YA2Bj6QLH0XPT1Fzbtm29tW3btm3bfLZtv7e2ObZnms7d8Uw098tuetPzrxv8wiISrtVudrG2JXQZ4VOv+qUfmqCGGl1mqLhoA52oZlb0mrjsnhKpgeUNEs91Z0pd1kvihA3ULGVHiQO2narKSHKkEMulm9VgUyE60s1aWoMQUbpZOWE+kaqs4eLEjdIlZTcFZB0ndc1+lhB1lZrIuk5P2aib1NBpZaL+JaOGIt0ls47SKzLC7CqrlGF6RZ09HGoNy1lYl2aRSWL5GuzqWU1KafRdoRp0iOQEiDzgZPnG6DbldcomadViflnl/cL93tOoVbsOLVM2jylvdWjXolWX1hmfZbGR/wjypDjFLSZIRov09BgYmtUqPQPlQrPapecLgTIy0jMgPKtTeob2zWtrGH3xvjUkPCtNg/tm1rjwrMa+mdUkPd3hWbH0jArPGiU9ufCsNNWFZ40wpwn+62/66R2RUtoso1OB34tnLOcy7YB1fUdc9e0q3yru8PGM773vXsuZ5YIZX+5xmHwHGVvlrGPN6ZSiP1smOsMMde40wKv2VmwPPVXNut4sVpUreZiLBHi0qln/VQeI/LTMYXpsJtFiclUN+5HVZazim+Ky+7sAvxWnvjXrJFneVtLWLyPJu9K3cXLWeOlbMTlrIelbMDlrLenrjEQOtIF+fuI9xRp9ZBFp6+b6WT8RrxEpdK64BuvHgDk+vUy+b5hYk6zfyfs051gRoNO1usU12WWRWL73/MMEy9pMi9qIrR4ZpV16Rrvduxazmy1FSvuFXRkqTnE7m
@callmephilip
callmephilip / navigation-reducer.js
Last active July 12, 2016 11:06
Complex navigation with React Native experimental navigation API
/*
*
* Navigation reducer
* !! Do NOT do this. I am putting this here just for illustraition purposes to demonstrate where i got stuck with
* this approach
*/
import ReactNative from 'react-native';
import Immutable from 'immutable';
/* global PARSE_API_ID:false, PARSE_API_KEY:false */
import Parse from 'parse';
Parse.initialize(PARSE_API_ID, PARSE_API_KEY);
plugins: options.plugins.concat([
new webpack.DefinePlugin({
PARSE_API_ID: JSON.stringify(process.env.PARSE_API_ID),
PARSE_API_KEY: JSON.stringify(process.env.PARSE_API_KEY),
}),
]),
import React from 'react';
import ReactDOM from 'react-dom';
import App from 'App';
ReactDOM.render(<App />, document.getElementById('app'));
resolve: {
modulesDirectories: [
'containers',
'components',
'selectors',
'sagas',
'assets',
'lib',
'apis',
'node_modules',
import React from 'react';
import ReactDOM from 'react-dom';
import App from './containers/App';
ReactDOM.render(<App />, document.getElementById('app'));
@callmephilip
callmephilip / add-meta-tags.js
Last active May 20, 2016 22:29
Add meta tags in Meteor
Router.route('/', {
name: 'home',
onAfterAction: function () {
DocHead.setTitle('Welcome home');
DocHead.addMeta({
name: "description",
content: "Site description"
});
DocHead.addMeta({
property: "og:title",
@callmephilip
callmephilip / add-spiderable.bash
Created November 29, 2015 16:24
Adding spiderable to Meteor
meteor add spiderable