Skip to content

Instantly share code, notes, and snippets.

@grabbou
Created June 25, 2015 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grabbou/0830fec044680b40e3e1 to your computer and use it in GitHub Desktop.
Save grabbou/0830fec044680b40e3e1 to your computer and use it in GitHub Desktop.
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({
// Load required mixins
mixins: [PureComponent, TrackKeyboard],
render() {
const marginTop = -(this.state.keyboardSpace / 1.5);
return (
<View style={{marginTop: marginTop}}></View>
);
}
});
export default CreateOrder;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment