How to use the react-dnd.NativeDragItemTypes function in react-dnd

To help you get started, we’ve selected a few react-dnd examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github GeReV / mpdisco / client / js / library.jsx View on Github external
var React = require('react/addons');
var _ = require('underscore');

var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup;

var cx = React.addons.classSet;
var update = React.addons.update;

var DragDropMixin = require('react-dnd').DragDropMixin;
var NativeDragItemTypes = require('react-dnd').NativeDragItemTypes;

var EnabledMixin = require('./mixins/enabled_mixin.js');

var LibraryArtistItem = require('./library_artist_item.jsx');
var LibraryFileUpload = require('./library_file_upload.jsx');

var MPDiscoController = require('./mpdisco_controller.js');

var tree = require('./mpdisco_model.js').tree;

var Library = React.createClass({

    mixins: [DragDropMixin, EnabledMixin, tree.mixin],

    propTypes: {
        controller: React.PropTypes.instanceOf(MPDiscoController).isRequired