UNPKG

react-native-reorderable-list

Version:

Reorderable list for React Native applications, powered by Reanimated

12 lines (8 loc) 297 B
import {useContext as useReactContext} from 'react'; export const useContext = <T>(context: React.Context<T | undefined>) => { const value = useReactContext(context); if (value !== undefined) { return value; } throw 'Please consume ReorderableList context within its provider.'; };