Skip to content

Commit

Permalink
Updating ReadMe & Adding height prop
Browse files Browse the repository at this point in the history
  • Loading branch information
KPS250 committed May 24, 2020
1 parent b07de8c commit 92acab3
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 252 deletions.
2 changes: 1 addition & 1 deletion App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
StyleSheet,
ScrollView,
} from 'react-native';
import CustomComponent from './src/CustomComponent';
import CustomComponent from './src/ChildItem';
import Preview from './src/Preview';
import {FlatListSlider} from 'react-native-flatlist-slider';

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Custom Image Slider Component in React Native

### Install
```
npm i react-native-image-slider-box
npm i react-native-flatlist-slider
```

### Import
Expand Down Expand Up @@ -97,6 +97,7 @@ npm i react-native-image-slider-box
| imageKey | String | ‘image' | Key for image in object |
| local | Boolean | false | Image to be loaded from URI or local |
| width | Number | screenWidth | Width of Item in list |
| height | Number | 230 | Height of Item in list |
| loop | Boolean | true | Enable infinite scroll for list |
| separatorWidth | Number | 0 | Width of separator between list items |
| autoscroll | Boolean | true | Enable autoScroll for list |
Expand Down
30 changes: 0 additions & 30 deletions src/CustomComponent.js

This file was deleted.

9 changes: 2 additions & 7 deletions src/Indicator.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import {View, StyleSheet} from 'react-native';
import {Colors} from './Colors';

export default (Indicator = ({
itemCount,
Expand Down Expand Up @@ -73,10 +72,6 @@ const styles = StyleSheet.create({
borderRadius: 3,
marginRight: 5,
},
active: {
backgroundColor: Colors.active,
},
inactive: {
backgroundColor: Colors.inactive,
},
active: {},
inactive: {},
});
213 changes: 0 additions & 213 deletions src/Slider.js

This file was deleted.

Binary file modified src/screenshots/banner.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 92acab3

Please sign in to comment.