One of the solution is to switch that isolatedModules flag to false, the error goes away, but we would like to avoid it.
The other is to change the way how the IDraggableProps are exported from src/index.ts file.
We change the node_modules/react-native-draggable-grid/src/index.ts to get rid of the error:
import { DraggableGrid, IDraggableGridProps } from './draggable-grid'
export type { IDraggableGridProps }
export { DraggableGrid }
export default DraggableGrid
but it doesn't feel right.
Is it all right if I make a PR to change /src/index.ts file or this change might affect other part of package?
Hey!
We are facing weird issue with:
Package version:
"react-native-draggable-grid": "^2.1.4",
TS throws error when run command
tsc --noEmit && eslint src/**/*.ts{,x}
Our eslintrc.js contains:
and tsconfig has:
One of the solution is to switch that isolatedModules flag to false, the error goes away, but we would like to avoid it. The other is to change the way how the
IDraggableProps
are exported fromsrc/index.ts
file.We change the
node_modules/react-native-draggable-grid/src/index.ts
to get rid of the error:but it doesn't feel right. Is it all right if I make a PR to change /src/index.ts file or this change might affect other part of package?