yarn add react-dnd-touch-backend Usage Followreact-dnd docsto setup your app. Then swap outHTML5BackendforTouchBackendas such: importReact,{Component}from'react';importTouchBackendfrom'react-dnd-touch-backend';
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 Install 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 ...
只需将所需的后端作为参数传递给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 ...
React 17.0.1 System MacOS 10.15.6 Browser Google Chrome Version 87.0.4280.88 This is happening only with the Touch backend of react-dnd. When in desktop, it is using HTML5 backend and it works perfectly fine. Member afc163 commented Dec 24, 2020 • edited I think it is a react-dnd...
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: ...
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 ...