https://github.com/twinger/react-native-zoom-layout
React Native Zoom Layout
https://github.com/twinger/react-native-zoom-layout
react-native zoom-layout zoom-view
Last synced: about 1 year ago
JSON representation
React Native Zoom Layout
- Host: GitHub
- URL: https://github.com/twinger/react-native-zoom-layout
- Owner: twinger
- License: mit
- Created: 2018-09-27T11:37:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-27T14:31:21.000Z (almost 8 years ago)
- Last Synced: 2024-10-29T23:42:44.149Z (over 1 year ago)
- Topics: react-native, zoom-layout, zoom-view
- Language: Java
- Size: 7.81 KB
- Stars: 15
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-zoom-layout
## Getting started
`$ npm install react-native-zoom-layout --save`
### Mostly automatic installation
`$ react-native link react-native-zoom-layout`
### Manual installation
#### Android
1. Open up `android/app/src/main/java/[...]/MainApplication.java`
- Add `import co.twinger.zoomlayout.RNZoomLayoutPackage;` to the imports at the top of the file
- Add `new RNZoomLayoutPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
```
include ':react-native-zoom-layout'
project(':react-native-zoom-layout').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-zoom-layout/android')
```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
```
compile project(':react-native-zoom-layout')
```
## Usage
```javascript
import ZoomLayout from 'react-native-zoom-layout';
this.zoomLayout = ref}
minZoom={1}
maxZoom={10}
style={{}}>
//your view
```