This file contains hidden or 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 KeyboardEvents from 'react-native-keyboardevents'; | |
import { | |
Emitter as KeyboardEventEmitter | |
} from 'react-native-keyboardevents'; | |
export default { | |
getInitialState() { | |
return { | |
keyboardSpace: 0, |
This file contains hidden or 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 PureComponent from 'react-pure-render/mixin'; | |
import React from 'react-native'; | |
import { | |
View, | |
Text | |
} from 'react-native'; | |
import TrackKeyboard from '../components/trackKeyboard.react'; | |
const CreateOrder = React.createClass({ |
This file contains hidden or 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 PureComponent from 'react-pure-render/mixin'; | |
import React from 'react-native'; | |
import { | |
View, | |
Text | |
} from 'react-native'; | |
import TrackKeyboard from '../components/trackKeyboard.react'; | |
import LoginForm from '../auth/loginForm.react'; | |
import style from './register.style.js'; |
This file contains hidden or 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
// Some predefined animations for you usage | |
export const animations = { | |
layout: { | |
spring: { | |
duration: 500, | |
create: { | |
duration: 300, | |
type: LayoutAnimation.Types.easeInEaseOut, | |
property: LayoutAnimation.Properties.opacity | |
}, |
This file contains hidden or 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 {Router} from 'express'; | |
import {wrap} from '../../utils'; | |
const router = Router(); | |
async function getAllChampagnes(req, res) { | |
const champagnes = await req.db.models.Champagne | |
.find() | |
.exec(); |
This file contains hidden or 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 PureRender from '../decorators/pureRender'; | |
import React from 'react-native'; | |
import autobind from 'autobind-decorator'; | |
import { | |
TextInput, | |
Text, | |
View | |
} from 'react-native'; | |
import style from './input.style'; |
This file contains hidden or 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 { | |
View | |
} from 'react-native'; | |
// not rewritten to react-native/....../react-native.js, cannot find module 'react-native'; | |
// output looks like | |
// var _reactNative=require( | |
// | |
// | |
//'react-native'); | |
// note line breakes in output |
This file contains hidden or 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 DocumentTitle from 'react-document-title'; | |
import Html from './html.react'; | |
import Promise from 'bluebird'; | |
import React from 'react'; | |
import Router from 'react-router'; | |
import config from '../config'; | |
import immutable from 'immutable'; | |
import initialState from '../initialstate'; | |
import routes from '../../client/routes'; | |
import stateMerger from '../lib/merger'; |
This file contains hidden or 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 KeyboardEvents from 'react-native-keyboardevents'; | |
import PureRender from './pureRender'; | |
import React, {Animated} from 'react-native'; | |
import {autobind} from 'core-decorators'; | |
import {Emitter as KeyboardEventEmitter} from 'react-native-keyboardevents'; | |
export default function makeDecorator(factor = 2.5) { | |
return function trackKeyboard(Component) { |
This file contains hidden or 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, {Animated, View, Text} from 'react-native'; | |
import TrackKeyboard from '../decorators/trackKeyboard'; | |
@TrackKeyboard(1) | |
export default class Login extends React.Component { | |
static propTypes = { | |
animations: React.PropTypes.object.isRequired | |
} |