/
githubmirror
/
react-beautiful-dnd
Обзор
Документация
Войти
/
githubmirror
/
react-beautiful-dnd
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/view/context/app-context.js
18 строк
666 B
Alex Reardon
more refinements based on testing with NVDA
13 фев 2020, 00:10
13 фев 2020, 00:10
7b2dfcf
Код
Авторство
О чём код?
// @flow import React from 'react'; import type { DraggableId, ContextId, ElementId } from '../../types'; import type { DimensionMarshal } from '../../state/dimension-marshal/dimension-marshal-types'; import type { FocusMarshal } from '../use-focus-marshal/focus-marshal-types'; import type { Registry } from '../../state/registry/registry-types'; export type AppContextValue = {| focus: FocusMarshal, contextId: ContextId, canLift: (id: DraggableId) => boolean, isMovementAllowed: () => boolean, dragHandleUsageInstructionsId: ElementId, marshal: DimensionMarshal, registry: Registry, |}; export default React.createContext<?AppContextValue>(null);