import{defaultasTouchBackend}from'react-dnd-touch-backend';import{DragDropContext}from'react-dnd';varYourApp=React.createClass(/* ... */);module.exports=DragDropContext(TouchBackend)(YourApp); Examples Theexamplesfolder has a sample integration. In order to build it, run: ...
16.0.1•Public• Published3 years ago This package does not have a README.Add a READMEto your package so that users know how to get started. Readme Keywords none npm ireact-dnd-touch-backend Repository github.com/react-dnd/react-dnd ...
AutomsoftIE / react-dnd-touch-backend Public forked from gaearon/react-dnd-touch-backend Notifications Fork 111 Star 0 Code Pull requests Actions Projects Wiki Security Insights Projects Templates Beta Search all projects No open projects ...
import{defaultasHTML5Backend }from"react-dnd-html5-backend";import{defaultasTouchBackend }from"react-dnd-touch-backend";import{defaultasMultiBackend, MouseTransition, TouchTransition, BackendTransition }from"dnd-multi-backend";import{ BackendFactory }from'dnd-core';exportconstHTML5ToTouch = {backends:...
只需将所需的后端作为参数传递给MultiBackend 。 例子 import React , { Component } from 'react' ; import MultiBackend from 'react-dnd-multi-backend' ; import HTML5Backend from 'react-dnd/modules/backends/HTML5' ; import TouchBackend from 'react-dnd-touch-backend' ; import { DragDropContext ...
import{defaultasTouchBackend}from'react-dnd-touch-backend';import{DragDropContext}from'react-dnd';varYourApp=React.createClass(/* ... */);module.exports=DragDropContext(TouchBackend)(YourApp); Drag Preview We might try to build it directly in the Backend itself in the future to compensate for...
Retrium / react-dnd-touch-backend Public archive forked from gaearon/react-dnd-touch-backend Notifications Fork 0 Star 0 Code Pull requests Actions Projects Wiki Security Insights Projects Templates Search all projects 0 Open 0 Closed Sort No open projects ...