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 | |
@objc(CustomRNViewManager) | |
class CustomRNViewManager : RCTViewManager { | |
override func view() -> UIView! { | |
return CustomRNView() | |
} | |
} |
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 | |
@objc(CustomRNViewManager) | |
class CustomRNViewManager : RCTViewManager { | |
override func view() -> UIView! { | |
return CustomRNView() | |
} | |
} |
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 UIKit | |
import React | |
import SnapKit | |
@objc(CustomRNView) | |
class CustomRNView : UIView { | |
var lblMessage:UILabel! | |
override init(frame: CGRect) { |
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 UIKit | |
import React | |
import SnapKit | |
class ViewController: UIViewController { | |
var rootView:RCTRootView! | |
override func viewDidLoad() { | |
super.viewDidLoad() |
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
'use strict'; | |
import React, { | |
Text, | |
View | |
} from 'react-native'; | |
var styles = React.StyleSheet.create({ | |
container: { | |
flex: 1, |
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
source 'https://github.com/CocoaPods/Specs.git' | |
platform :ios, '8.0' | |
use_frameworks! | |
target 'IntegrateRN' do | |
pod 'React', :path => './node_modules/react-native', :subspecs => [ | |
'Core', | |
'RCTImage', | |
'RCTNetwork', | |
'RCTText', |
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
{ | |
"name": "integrate-rn", | |
"version": "1.0.0", | |
"description": "", | |
"scripts": { | |
"start": "node node_modules/react-native/local-cli/cli.js start", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", |
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
(ns snl.core | |
(:require [clojure.string :as str] | |
[clojure.pprint :as pp])) | |
(defonce game-state (atom {:players [] :board nil})) | |
(defn board! [] (:board @game-state)) | |
(defn players! [] (:players @game-state)) | |
(defn snakes! [] (:snakes (:board @game-state))) | |
(defn ladders! [] (:ladders (:board @game-state))) |
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
setw -g xterm-keys on | |
set-option -g default-terminal "screen-256color" | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
set-option -g set-titles on | |
bind-key | split-window -h | |
bind-key - split-window | |
setw -g mode-keys vi | |
set -sg escape-time 0 | |
# Setup 'v' to begin selection as in Vim | |
bind-key -t vi-copy v begin-selection |
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
'use strict'; | |
var React = require("react-native"); | |
var { AppRegistry, StyleSheet, View, Text, ListView } = React; | |
var REDDIT_URL = "http://www.reddit.com/.json"; | |