Skip to content

Instantly share code, notes, and snippets.

var FooContainer = React.createClass({
mixins: [PureRenderMixin],
getInitialState() {
return this.calculateState();
},
componentWillMount() {
this._subscriptions = [
<html>
<head>
<script>
var _href;
var _length;
function debugURL() {
if (_href === window.location.href && _length === history.length) {
return;
}
<!doctype html>
<html>
<head>
<style>
a {
display: block;
margin: 10px;
border: solid 1px #eee;
padding: 10px;
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @providesModule Playground
*/
'use strict';
var React = require('React');
var StyleSheet = require('StyleSheet');
var View = require('View');
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @providesModule Playground
*/
'use strict';
var React = require('React');
var StyleSheet = require('StyleSheet');
var View = require('View');
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @providesModule Playground
*/
'use strict';
var React = require('React');
var StyleSheet = require('StyleSheet');
var View = require('View');
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @providesModule Playground
*/
'use strict';
const Animated = require('Animated');
const Easing = require('Easing');
const NavigationCardStackPanResponder = require('NavigationCardStackPanResponder');
@hedgerwang
hedgerwang / NavigationTransitioner.js
Created May 25, 2016 00:25
NavigationTransitioner : playground
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @providesModule Playground
*/
'use strict';
const Animated = require('Animated');
const Easing = require('Easing');
const NavigationCardStackPanResponder = require('NavigationCardStackPanResponder');
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @providesModule Playground
*/
'use strict';
const React = require('React');
const Text = require('Text');
const View = require('View');