{"version":3,"sources":["CompatNativeSafeAreaProvider.tsx"],"names":["CompatNativeSafeAreaProvider","children","style","onInsetsChange","window","React","useEffect","insets","top","bottom","left","right","frame","x","y","width","height","nativeEvent"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;;;AAEO,SAASA,4BAAT,CAAsC;AAC3CC,EAAAA,QAD2C;AAE3CC,EAAAA,KAF2C;AAG3CC,EAAAA;AAH2C,CAAtC,EAIyB;AAC9B,QAAMC,MAAM,GAAG,mCAAf;AACAC,EAAAA,KAAK,CAACC,SAAN,CAAgB,MAAM;AACpB,UAAMC,MAAM,GAAG;AACbC,MAAAA,GAAG,EAAE,CADQ;AAEbC,MAAAA,MAAM,EAAE,CAFK;AAGbC,MAAAA,IAAI,EAAE,CAHO;AAIbC,MAAAA,KAAK,EAAE;AAJM,KAAf;AAMA,UAAMC,KAAK,GAAG;AACZC,MAAAA,CAAC,EAAE,CADS;AAEZC,MAAAA,CAAC,EAAE,CAFS;AAGZC,MAAAA,KAAK,EAAEX,MAAM,CAACW,KAHF;AAIZC,MAAAA,MAAM,EAAEZ,MAAM,CAACY;AAJH,KAAd,CAPoB,CAapB;;AACAb,IAAAA,cAAc,CAAC;AAAEc,MAAAA,WAAW,EAAE;AAAEV,QAAAA,MAAF;AAAUK,QAAAA;AAAV;AAAf,KAAD,CAAd;AACD,GAfD,EAeG,CAACT,cAAD,EAAiBC,MAAM,CAACY,MAAxB,EAAgCZ,MAAM,CAACW,KAAvC,CAfH;AAgBA,sBAAO,oBAAC,iBAAD;AAAM,IAAA,KAAK,EAAEb;AAAb,KAAqBD,QAArB,CAAP;AACD","sourcesContent":["import * as React from 'react';\nimport { View } from 'react-native';\nimport { NativeSafeAreaProviderProps } from './SafeArea.types';\nimport useWindowDimensions from './useWindowDimensions';\n\nexport function CompatNativeSafeAreaProvider({\n children,\n style,\n onInsetsChange,\n}: NativeSafeAreaProviderProps) {\n const window = useWindowDimensions();\n React.useEffect(() => {\n const insets = {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n };\n const frame = {\n x: 0,\n y: 0,\n width: window.width,\n height: window.height,\n };\n // @ts-ignore: missing properties\n onInsetsChange({ nativeEvent: { insets, frame } });\n }, [onInsetsChange, window.height, window.width]);\n return {children};\n}\n"]}