I hereby claim:
- I am evturn on github.
- I am evturn (https://keybase.io/evturn) on keybase.
- I have a public key whose fingerprint is D1BD F3A8 825E E25E B72E 0ACB F612 A187 2CA6 6236
To claim this, I am signing this object:
import React, { Component } from 'react'; | |
import { StyleSheet, TextInput, View } from 'react-native'; | |
/* | |
* | |
* class SomeComponent extends Component { | |
* onValueChange = pin => { | |
* return someOperation(pin); | |
* } | |
* |
I hereby claim:
To claim this, I am signing this object:
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Monokai Phoenix</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
const React, { Component } from 'react' | |
const { render } from 'react-dom' | |
const { Observable } from 'rxjs' | |
const db = {} | |
class Backpack extends Component { | |
constructor(props) { | |
super(props) |
const { cloneElement } = React | |
const plopProps = plops => ( | |
props => ( | |
inward => ( | |
plops(props) | |
? cloneElement(plops(props), props, (plops(props).props.children || []).concat(inward.plops(props))) | |
: inward.plops(props) | |
) | |
) |
class RecordMap { | |
set(map, record) { | |
if (map && !record) { | |
record = map | |
map = Immutable.Map() | |
} | |
return map.set(record.id, new Record(record)) | |
} | |
setGroup(map, data) { |
function Observer(destination) { | |
this.destination = destination | |
} | |
Observer.prototype = { | |
constructor: Observer, | |
next(value) { | |
if (this.destination.next && !this.isUnsubscribed) { | |
this.destination.next && this.destination.next(value) |
The create operator in the Rx.Observable object takes a callback that accepts an Observer as a parameter. That function defines how the Observable will emit values
var observable = Rx.Observable.create(function(observer) {
observer.onNext('Sergio');
observer.onNext('Tyrone');
// Sup. |