Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
react-native-pinch-zoom-view
Advanced tools
A pinch-to-zoom view for React Native. All the components wrapped in the view is scalable while still be able to respond to touch events.
npm install react-native-pinch-zoom-view --save
require
the react-native-pinch-zoom-view
module and then use the <PinchZoomView>
tag to wrap your content instead of <View>
.
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
TextInput
} from 'react-native';
import PinchZoomView from 'react-native-pinch-zoom-view';
class APP extends Component {
render() {
return (
<PinchZoomView>
<TextInput style={{width: 100}}></TextInput>
</PinchZoomView>
);
}
}
AppRegistry.registerComponent('APP', () => APP);
scalable
Values: true
or false
Default: true
In some cases, you may want to disable the pinch-zoom behaviour, just set scalable={false}
on the component.
minScale
Type: Number
Default: 0.5
Minimum scaling.
maxScale
Type: Number
Default: 2
Maximum scaling.
Check out a simple example in Example.
FAQs
A pinch-to-zoom view for React Native.
The npm package react-native-pinch-zoom-view receives a total of 964 weekly downloads. As such, react-native-pinch-zoom-view popularity was classified as not popular.
We found that react-native-pinch-zoom-view demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.