react-native-hold-menu icon indicating copy to clipboard operation
react-native-hold-menu copied to clipboard

Typescript Error Property 'safeAreaInsets' is missing in type

Open ollyde opened this issue 1 year ago • 2 comments

"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.

ollyde avatar Dec 07 '24 17:12 ollyde

I am getting the same error. Did you find the solution?

gr8pathik avatar Feb 03 '25 07:02 gr8pathik

This should do the trick:

          <HoldMenuProvider
            safeAreaInsets={{ top: 0, bottom: 0, left: 0, right: 0 }}
            theme="dark"
          >

hems avatar Mar 26 '25 11:03 hems