Hi there!
First of all, thanks for the great library. I've encountered a build error when trying to use @openspacelabs/react-native-zoomable-view in an Expo/React Native project.
The Problem:
The file ReactNativeZoomableView.tsx imports debounce from lodash on line 33, but lodash is not listed as a dependency in the package.json file. This results in the following error:
Unable to resolve "lodash" from "node_modules/@openspacelabs/react-native-zoomable-view/src/ReactNativeZoomableView.tsx"
Steps to Reproduce:
- Install
@openspacelabs/react-native-zoomable-view.
- Try to build/run the project.
- The Metro bundler fails because it cannot find the
lodash module.
Suggested Fix:
Add lodash to the dependencies section in package.json.
Environment:
- React Native / Expo
- Library version: ^2.4.2
Unable to resolve "lodash" from "node_modules/@openspacelabs/react-native-zoomable-view/src/ReactNativeZoomableView.tsx"
31 | import { viewportPositionToImagePosition } from './helper/coordinateConversion';
32 | import { StaticPin } from './components/StaticPin';
33 | import { debounce } from 'lodash';
Hi there!
First of all, thanks for the great library. I've encountered a build error when trying to use
@openspacelabs/react-native-zoomable-viewin an Expo/React Native project.The Problem:
The file
ReactNativeZoomableView.tsximportsdebouncefromlodashon line 33, butlodashis not listed as a dependency in thepackage.jsonfile. This results in the following error:Steps to Reproduce:
@openspacelabs/react-native-zoomable-view.lodashmodule.Suggested Fix:
Add
lodashto thedependenciessection inpackage.json.Environment: