

React native image pin allows for adding a pin or a marker to any image and to z...
source link: https://reactnativeexample.com/react-native-image-pin-allows-for-adding-a-pin-or-a-marker-to-any-image-and-to-zoom/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

React native image pin allows for adding a pin or a marker to any image and to zoom
Apr 18, 2022
1 min read
react-native-image-pin
React native image pin allows for adding a pin or a marker to any image and to zoom and move around the image as needed, this is helpfun for marking specific coordinates in layouts or blueprints or any kind of image
Installation
npm install react-native-image-pin @openspacelabs/react-native-zoomable-view yarn add react-native-image-pin @openspacelabs/react-native-zoomable-view
Usage
import ImagePinView from "react-native-image-pin"; <ImagePinView editable={true} containerStyle={{borderWidth:1}} imageHeight={300} markerSize={0.15} //size based on the view height onMarkerAdded={(rx, ry) => { console.log(rx), console.log(ry); }} imageSource={require('./floorplan.jpg')} //or uri markerSource={require('./marker.png')} //or uri />
Props
containerStyle: ViewStyle; markerX?: number; markerY?: number; markerSize: number; markerSource: ImageSourcePropType; parentScrollRef?: RefObject<ScrollView>; imageSource: ImageSourcePropType; editable: boolean; imageHeight: number; onMarkerAdded: (x: number, y: number) => void;
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
GitHub
Recommend
-
10
camera-roll-picker A CameraRoll picker with support for changing the album name (groupName) and adding a video marker. Rewritten with performance in mind. Based on react-native-camera-roll-picker Getting started ...
-
8
Apps React native app that allows for users to be able to share their of grocery items ...
-
15
As a Web Designer / Developer, it’s very easy to implement Background Image through CSS with its background-image property and then define its value with the containing path. But in React Native it is slightly different. Let’s start building...
-
14
react-native-android-notification-listener React Native Android Notification Listener is a library that allows you to listen for status bar notifications from all applications. (Android Only) Installation $ yarn...
-
2
react-native-photo-view Provides custom Image view for React Native that allows to perform pinch-to-zoom on images. Works on both iOS and Android. This component uses
-
9
AR.js - Augmented Reality on the Web AR.js is a lightweight library for Augmented Reality on the Web, coming with features like Image Tracking, Location-based AR and Marker tracking. Welcome to the official repository!
-
28
NFC An open source React Native NFC app allows read & write to NFC tags Dec 30, 2021 2 min read
-
10
Shut It is a small project that allows me to shut down my computer from my phone (there are probably other tools for that but I wanted it to be mine). It uses Node.js ran as a Windows service (hence the serviceSetup.js in the shutit-pc...
-
7
T-Mobile is adding PIN protection to its port-out process Another line of defense against SIM swapping By...
-
7
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK