UNPKG

react-beautiful-dnd-next

Version:

Beautiful and accessible drag and drop for lists with React

14 lines (11 loc) 401 B
// @flow import React from 'react'; import type { DraggableId } from '../../types'; import type { DimensionMarshal } from '../../state/dimension-marshal/dimension-marshal-types'; export type AppContextValue = {| marshal: DimensionMarshal, style: string, canLift: (id: DraggableId) => boolean, isMovementAllowed: () => boolean, |}; export default React.createContext<?AppContextValue>(null);