-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# react-native-kenburns-view | ||
|
||
[`KenBurns`](https://en.wikipedia.org/wiki/Ken_Burns_effect) Image Effect for React Native. Based on Image Component [`Image` Component](https://facebook.github.io/react-native/docs/image.html). | ||
Version: 0.0.1 | ||
|
||
Tested on React Native iOS Apps only. Feedback: [email protected] | ||
|
||
## Installation | ||
|
||
```bash | ||
$ npm i react-native-kenburns-view --save | ||
``` | ||
|
||
## Usage | ||
|
||
```jsx | ||
<BurnsImage tension={4} friction={50} imageWidth={200} imageHeight={100} sourceUri={{uri: ./images/kenburnsimage.jpg}} placeholderSource={{uri: './images/placeholder.jpg'}}> | ||
</BurnsImage> | ||
``` | ||
|
||
|
||
## API (props) | ||
|
||
| Prop | Description | | ||
|---|---| | ||
|**`tension`**| `int` Tension Value. | | ||
|**`friction`**| `int` Friction Value. | | ||
|**`imageWidth`**| `int` Image Width. | | ||
|**`imageHeight`**| `int` Image Height. | | ||
|**`sourceUri`**| `URI String` Image URL. | | ||
|**`placeholderSource`**| `URI String` Placeholder Image URL (Possibly a Local Image). | |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* Created by Nimila Hiranya Samarasinghe | ||
* Links: https://github.com/nHiRanZ | ||
* | ||
* Version: 0.0.1 | ||
* | ||
* Description: This reflects the KenBurns effect in a React Native Image | ||
*/ | ||
|
||
module.exports = require('./lib/KenBurnsImage'); |