An open API service indexing awesome lists of open source software.

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

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

```