Closed enaluz closed 4 years ago
Update: I fixed it! It was super simple. Just resolved the path to the types file, and had to install @types/react-is
as a dev dependency in the parent project (my app root). Here is the patch generated by patch-package
:
diff --git a/node_modules/react-native-modalfy/utils/getStackItemData.ts b/node_modules/react-native-modalfy/utils/getStackItemData.ts
index ece3ba7..b3d0405 100644
--- a/node_modules/react-native-modalfy/utils/getStackItemData.ts
+++ b/node_modules/react-native-modalfy/utils/getStackItemData.ts
@@ -1,6 +1,6 @@
import { isValidElementType } from 'react-is'
-import { ModalOptions } from 'types'
+import { ModalOptions } from '../types'
export default function <P>(
modalName: Exclude<keyof P, symbol | number>,
Hey @enaluz! Thanks for the heads up! The ../types
one is on us yeah, will fix it for the upcoming patch release. I hope you'll enjoy Modalfy and feel free to reach out if needed!
Awesome library everyone! I haven't integrated it into our production version yet, but we plan to as soon as we can get it working.
Upon installation, I got this type error. Any ideas on what could fix this? I've tried nuking and reinstalling
node_modules
. I'm usingyarn
, and node versionv12.4.0
.Thank you in advance 😄