UNPKG

@vandrei977/react-native-render-html

Version:

The hackable, full-featured Open Source HTML rendering solution for React Native.

14 lines (12 loc) 322 B
import { useContext } from 'react'; import contentWidthContext from '../context/contentWidthContext'; /** * A hook to get access to the ambient `contentWidth`. * * @returns The contentWidth available in context. * * @public */ export default function useContentWidth() { return useContext(contentWidthContext); }