react-native-zoom-layout

1.0.1 • Public • Published

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
  1. 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')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-zoom-layout')
    

Usage

import ZoomLayout from 'react-native-zoom-layout';

<ZoomLayout
	ref={ref => this.zoomLayout = ref}
	minZoom={1}
	maxZoom={10}
	style={{}}>
	<View style={{
		width: height,
		height: width,
	}}>
		//your view
</ZoomLayout>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    0

Package Sidebar

Install

npm i react-native-zoom-layout

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

10.9 kB

Total Files

10

Last publish

Collaborators

  • yaraht17