Closed magom001 closed 1 year ago
@jacobp100 the #400 only fixes the issue #1
Could you do a PR?
@jacobp100 I'll look into it
@jacobp100 please see the pr: https://github.com/th3rdwave/react-native-safe-area-context/pull/404
I figured that since it is for type definitions only, just a cast will do
generated type definitions after changes
version 4.6.0
Issues #1: In the package json you have
"types": "lib/typescript/index.d.ts",
, but there is noindex.d.ts
there, it should be"types": "lib/typescript/src/index.d.ts",
Issue #2:
"moduleSuffixes": [".windows", ".electron", ".web", ""],
<SafeAreaView ... edges={['top', 'left']}>...
Expected result: everything compiles Actual result: TS error "Property 'edges' does not exist"...
By navigating to the SafeAreaView definition for windows we see:
For obvious reasons
View
does not haveedges
property.