A react native component for showing banner that automatically swipe.
- Demo
- Installation
- Supported versions
- Usage
- Props
- Methods
- Want to Contribute?
- Need Help?
- Collection of Components
- Changelog
- License
- Keywords
$ npm install rn-weblineindia-banner-view --save
We have tested this component in ReactNative 0.60 - 0.66.4. You can still use it in other versions.
import BannerView from 'rn-weblineindia-banner-view';
const DATA = [
'https://picsum.photos/200/300',
'https://picsum.photos/120/150'
];
<BannerView
data={DATA}
titleKey="titleKey"
/>
Props | Type | Required | Description |
---|---|---|---|
data | array |
yes | Array List to be displayed |
titleKey | string |
no | Key which is used for title |
subTitleKey | string |
no | Key which is used for sub title |
activeIndicatorColor | string |
no | Color to be displayed for active page indicator |
passiveIndicatorColor | string |
no | Color to be displayed for passive page indicator |
viewStyle | [object, array] |
no | Styles is passed to the page view |
imageStyle | [object, array] |
no | Styles is passed to the image |
isAutoPlay | boolean |
no | default true |
timeDuration | number |
no | default 5 sec, For better result use max 3 sec |
onChangeIndex | callback | no | get index value of banner |
Method | Description |
---|---|
onChangeIndex | Callback that is called when the banner index is changed. |
- Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).
- Fork it.
- Create new branch to contribute your changes.
- Commit all your changes to your branch.
- Submit a pull request.
We also provide a free, basic support for all users who want to use this ReactNative Banner View in their software project. In case you want to customize this Banner View to suit your development needs, then feel free to contact our ReactNative developers.
We have built many other components and free resources for software development in various programming languages. Kindly click here to view our Free Resources for Software Development.
Detailed changes for each release are documented in CHANGELOG.md.
rn-weblineindia-banner-view, react-native-banner-view, banner-view, react-native, page-control