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, { Component, PropTypes } from 'react'; | |
import { WebView } from 'react-native'; | |
import CookieManager from 'react-native-cookies'; | |
export default class extends Component { | |
static propTypes = { | |
clearCookies: PropTypes.bool, | |
}; | |
static defaultProps = { |
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
// Require lodash library | |
var _ = require('lodash'); | |
// Require dateformat library | |
var dateFormat = require('dateformat'); | |
//require the icons map script | |
var icons = require('./icons'); | |
// Current weather root url for the actual data |
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
function asyncMultiGet(keys) { | |
return AsyncStorage.multiGet(keys) | |
.then((err, data) => { | |
if (! err) { | |
return data.reduce(function (carry, val) { | |
carry[val[0]] = val[1]; | |
return carry; | |
}, {}); | |
} | |
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
// | |
// RNS3Uploader.h | |
// Squad | |
// | |
// Created by Dan Horrigan on 10/6/15. | |
// Copyright © 2015 Tackk. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import "RCTBridgeModule.h" |
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
<div class="_li"> | |
<div id="pagelet_bluebar" data-referrer="pagelet_bluebar"> | |
<div id="blueBarDOMInspector" class="_21dp"> | |
<div class="_2t-8 _1s4v _2s1x"> | |
<div class="_2t-a _26aw _50ti _2s1y" role="banner"> | |
<div class="_2t-a _50tj"> | |
<div class="_2t-a _4pmj _2t-d _50tk"><a class="accessible_elem skipto" href="#newsFeedHeading" target="newsFeedHeading" id="u_0_0">Skip to News Feed</a> | |
<div class="_2t-e"> | |
<div class="_4kny"> | |
<h1 class="_19ea" data-click="bluebar_logo"><a class="_19eb" data-gt="{"chrome_nav_item":"logo_chrome"}" href="https://www.facebook.com/?ref=logo"><span class="_2md">Facebook</span></a></h1> |
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 Setting from React up here | |
function setHasLocationPermission(hasPerm) { | |
Settings.set({hasLocationPermission: hasPerm}); | |
} | |
navigator.geolocation.getCurrentPosition( | |
(position) => setHasLocationPermission(true), | |
(error) => { |
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
propTypes: { | |
...ListView.propTypes, | |
order: PropTypes.array, | |
data: PropTypes.object, | |
// etc... | |
}, |
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
// | |
// RNUtils.m | |
// | |
// Created by Dan Horrigan on 8/13/15. | |
// Copyright (c) 2015 Tackk, Inc. All rights reserved. | |
// | |
#import "RCTBridgeModule.h" | |
@interface RNUtils : NSObject <RCTBridgeModule> |
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
<?php | |
namespace Core; | |
use Interop\Container\ContainerInterface; | |
use Slim\App; | |
class Application extends App { | |
/** | |
* @param ContainerInterface|array $container |