openspacelabs / react-native-zoomable-view

A view component for react-native with pinch to zoom, tap to move and double tap to zoom capability.
MIT License
205 stars 57 forks source link

Typescript build errors #41

Closed pot2mayo closed 2 years ago

pot2mayo commented 2 years ago

The tsc --noEmit command, as well as the npm run typescript command, generates many errors in the source of the latest v2.0.4.

image

pot2mayo commented 2 years ago

Found the issue. Posting the solution here for future reference.

I imported the module using the following import command from the readme import ReactNativeZoomableView from '@openspacelabs/react-native-zoomable-view/src/ReactNativeZoomableView' But that triggered the errors.

When importing the module using the following import it works fine. import { ReactNativeZoomableView } from '@openspacelabs/react-native-zoomable-view'; Import method that is also visible in one of the sample code snippet from the readme