react-native-hold-menu
react-native-hold-menu copied to clipboard
Typescript Error Property 'safeAreaInsets' is missing in type
"react-native-hold-menu": "^0.1.6",
import { HoldMenuProvider } from 'react-native-hold-menu';
<HoldMenuProvider theme="light">
Property 'safeAreaInsets' is missing in type '{ children: Element; theme: "light"; }' but required in type 'HoldMenuProviderProps'.ts(2741)
types.d.ts(24, 3): 'safeAreaInsets' is declared here.
I am getting the same error. Did you find the solution?
This should do the trick:
<HoldMenuProvider
safeAreaInsets={{ top: 0, bottom: 0, left: 0, right: 0 }}
theme="dark"
>