Skip to content

Commit

Permalink
fully functional first version; updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alwx committed Jun 17, 2016
1 parent c047993 commit 4b872f4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
Work in progress
# react-native-photo-view

Provides custom Image view for React Native that allows to perform
pinch-to-zoom on images.
*On iOS* it uses native Image wrapped in ScrollView;
*On Android* it uses PhotoDraweeView.

## Installation

```
npm install --save git+https://[email protected]/alwx/react-native-photo-view
```
14 changes: 11 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import React from 'react';
import { PropTypes } from 'react';
import { requireNativeComponent, View } from 'react-native';

import {NativeModules} from 'react-native';
export default NativeModules.PhotoView;
var iface = {
name: 'PhotoView',
propTypes: {
src: PropTypes.string,
...View.propTypes // include the default view properties
},
};

module.exports = requireNativeComponent('PhotoView', iface);

0 comments on commit 4b872f4

Please sign in to comment.